diff options
author | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-20 07:39:42 +0800 |
---|---|---|
committer | Steve Klebanoff <steve.klebanoff@gmail.com> | 2018-10-20 07:41:39 +0800 |
commit | a766d78706cb45336263388360584390fe0e62f2 (patch) | |
tree | a2a9b4361d3cd873578a104ec726534f82117541 /packages | |
parent | bf0a4bd91b6e6d15a468b0e75a3a5846c98b85ab (diff) | |
download | dexon-sol-tools-a766d78706cb45336263388360584390fe0e62f2.tar dexon-sol-tools-a766d78706cb45336263388360584390fe0e62f2.tar.gz dexon-sol-tools-a766d78706cb45336263388360584390fe0e62f2.tar.bz2 dexon-sol-tools-a766d78706cb45336263388360584390fe0e62f2.tar.lz dexon-sol-tools-a766d78706cb45336263388360584390fe0e62f2.tar.xz dexon-sol-tools-a766d78706cb45336263388360584390fe0e62f2.tar.zst dexon-sol-tools-a766d78706cb45336263388360584390fe0e62f2.zip |
Remove hack fix
Diffstat (limited to 'packages')
-rw-r--r-- | packages/instant/src/components/buy_button.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/packages/instant/src/components/buy_button.tsx b/packages/instant/src/components/buy_button.tsx index 9a3ded699..2def34fd7 100644 --- a/packages/instant/src/components/buy_button.tsx +++ b/packages/instant/src/components/buy_button.tsx @@ -40,12 +40,10 @@ export class BuyButton extends React.Component<BuyButtonProps> { this.props.onClick(this.props.buyQuote); let txnHash; try { - txnHash = await this.props.assetBuyer.executeBuyQuoteAsync(this.props.buyQuote, { - gasLimit: 5000000, - }); + txnHash = await this.props.assetBuyer.executeBuyQuoteAsync(this.props.buyQuote); await web3Wrapper.awaitTransactionSuccessAsync(txnHash); this.props.onBuySuccess(this.props.buyQuote, txnHash); - } catch (e) { + } catch { this.props.onBuyFailure(this.props.buyQuote, txnHash); } }; |