diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-27 03:43:08 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-27 03:43:08 +0800 |
commit | ffecba21f4e9dcda961a3e8432e70e6605174de5 (patch) | |
tree | 35cce13840a35a8a37b570de6c1588c3bece5aa8 /packages/instant/src/components | |
parent | 3e8d9510ec35e0f830a708efa608fd4c77ecfcae (diff) | |
download | dexon-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')
-rw-r--r-- | packages/instant/src/components/buy_button.tsx | 4 |
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); |