aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/buy_button.tsx
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-25 03:57:25 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-25 03:57:25 +0800
commit11f7f2d29fb0a32cfb65e6206747a8ea35ad0744 (patch)
tree51507b8e5a834b6f8816dbba84d8cf7b8477fc5b /packages/instant/src/components/buy_button.tsx
parentc5554fe30c199155d4e020028aa4aa1f808918b9 (diff)
parent059868e9942fed4616750d212e706f09d17f397b (diff)
downloaddexon-0x-contracts-11f7f2d29fb0a32cfb65e6206747a8ea35ad0744.tar.gz
dexon-0x-contracts-11f7f2d29fb0a32cfb65e6206747a8ea35ad0744.tar.zst
dexon-0x-contracts-11f7f2d29fb0a32cfb65e6206747a8ea35ad0744.zip
Merge branch 'development' of https://github.com/0xProject/0x-monorepo into feature/instant/input-fees-rounding
Diffstat (limited to 'packages/instant/src/components/buy_button.tsx')
-rw-r--r--packages/instant/src/components/buy_button.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/instant/src/components/buy_button.tsx b/packages/instant/src/components/buy_button.tsx
index f999d59a8..9c42f3d87 100644
--- a/packages/instant/src/components/buy_button.tsx
+++ b/packages/instant/src/components/buy_button.tsx
@@ -41,8 +41,8 @@ export class BuyButton extends React.Component<BuyButtonProps> {
let txnHash;
try {
txnHash = await this.props.assetBuyer.executeBuyQuoteAsync(this.props.buyQuote);
- await web3Wrapper.awaitTransactionSuccessAsync(txnHash);
- this.props.onBuySuccess(this.props.buyQuote, txnHash);
+ const txnReceipt = await web3Wrapper.awaitTransactionSuccessAsync(txnHash);
+ this.props.onBuySuccess(this.props.buyQuote, txnReceipt.transactionHash);
} catch {
this.props.onBuyFailure(this.props.buyQuote, txnHash);
}