aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/buy_button.tsx
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-27 03:43:08 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-27 03:43:08 +0800
commitffecba21f4e9dcda961a3e8432e70e6605174de5 (patch)
tree35cce13840a35a8a37b570de6c1588c3bece5aa8 /packages/instant/src/components/buy_button.tsx
parent3e8d9510ec35e0f830a708efa608fd4c77ecfcae (diff)
downloaddexon-0x-contracts-ffecba21f4e9dcda961a3e8432e70e6605174de5.tar.gz
dexon-0x-contracts-ffecba21f4e9dcda961a3e8432e70e6605174de5.tar.zst
dexon-0x-contracts-ffecba21f4e9dcda961a3e8432e70e6605174de5.zip
ethDecimals -> ETH_DECIMALS
Diffstat (limited to 'packages/instant/src/components/buy_button.tsx')
-rw-r--r--packages/instant/src/components/buy_button.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/instant/src/components/buy_button.tsx b/packages/instant/src/components/buy_button.tsx
index a70269dde..4780b80e7 100644
--- a/packages/instant/src/components/buy_button.tsx
+++ b/packages/instant/src/components/buy_button.tsx
@@ -4,6 +4,7 @@ import * as React from 'react';
import { WEB_3_WRAPPER_TRANSACTION_FAILED_ERROR_MSG_PREFIX } from '../constants';
import { ColorOption } from '../style/theme';
+import { getBestAddress } from '../util/address';
import { util } from '../util/util';
import { web3Wrapper } from '../util/web3_wrapper';
@@ -45,7 +46,8 @@ export class BuyButton extends React.Component<BuyButtonProps> {
let txHash: string | undefined;
this.props.onAwaitingSignature(buyQuote);
try {
- txHash = await assetBuyer.executeBuyQuoteAsync(buyQuote);
+ const takerAddress = await getBestAddress();
+ txHash = await assetBuyer.executeBuyQuoteAsync(buyQuote, { takerAddress });
} catch (e) {
if (e instanceof Error && e.message === AssetBuyerError.SignatureRequestDenied) {
this.props.onSignatureDenied(buyQuote, e);