aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components/buy_button.tsx
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-24 08:06:45 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-24 08:06:45 +0800
commit4c4286ac662d3dba928bf16b83ade5e5476f4614 (patch)
treebce36f2ff8fce37e690409584ffe00bc391cebf1 /packages/instant/src/components/buy_button.tsx
parent194cbc3ba941023a0b6c1845a867ccfd619b754f (diff)
downloaddexon-0x-contracts-4c4286ac662d3dba928bf16b83ade5e5476f4614.tar.gz
dexon-0x-contracts-4c4286ac662d3dba928bf16b83ade5e5476f4614.tar.zst
dexon-0x-contracts-4c4286ac662d3dba928bf16b83ade5e5476f4614.zip
feat(instant): Procesing and Success states
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 2def34fd7..1afd216d8 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);
}