aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-20 07:39:42 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-20 07:41:39 +0800
commita766d78706cb45336263388360584390fe0e62f2 (patch)
treea2a9b4361d3cd873578a104ec726534f82117541 /packages
parentbf0a4bd91b6e6d15a468b0e75a3a5846c98b85ab (diff)
downloaddexon-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.tsx6
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);
}
};