aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/components
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebnaoff@gmail.com>2018-10-30 11:08:46 +0800
committerSteve Klebanoff <steve.klebnaoff@gmail.com>2018-10-30 11:08:46 +0800
commit728f70f51b2fe4c5037e7b74a5dfb29f1f8ca4c9 (patch)
tree81d69e5b69da6f7a6bd82e0599ca84e023b2cac3 /packages/instant/src/components
parentf9eba65aee8e71de609801e640de4101af9645e6 (diff)
downloaddexon-sol-tools-728f70f51b2fe4c5037e7b74a5dfb29f1f8ca4c9.tar
dexon-sol-tools-728f70f51b2fe4c5037e7b74a5dfb29f1f8ca4c9.tar.gz
dexon-sol-tools-728f70f51b2fe4c5037e7b74a5dfb29f1f8ca4c9.tar.bz2
dexon-sol-tools-728f70f51b2fe4c5037e7b74a5dfb29f1f8ca4c9.tar.lz
dexon-sol-tools-728f70f51b2fe4c5037e7b74a5dfb29f1f8ca4c9.tar.xz
dexon-sol-tools-728f70f51b2fe4c5037e7b74a5dfb29f1f8ca4c9.tar.zst
dexon-sol-tools-728f70f51b2fe4c5037e7b74a5dfb29f1f8ca4c9.zip
store estimated time in Ms on state
Diffstat (limited to 'packages/instant/src/components')
-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 36cc32dbc..ec1010fe9 100644
--- a/packages/instant/src/components/buy_button.tsx
+++ b/packages/instant/src/components/buy_button.tsx
@@ -19,7 +19,7 @@ export interface BuyButtonProps {
onValidationPending: (buyQuote: BuyQuote) => void;
onValidationFail: (buyQuote: BuyQuote, errorMessage: AssetBuyerError | ZeroExInstantError) => void;
onSignatureDenied: (buyQuote: BuyQuote) => void;
- onBuyProcessing: (buyQuote: BuyQuote, txHash: string) => void;
+ onBuyProcessing: (buyQuote: BuyQuote, txHash: string, estimatedTimeMs?: number) => void;
onBuySuccess: (buyQuote: BuyQuote, txHash: string) => void;
onBuyFailure: (buyQuote: BuyQuote, txHash: string) => void;
}
@@ -73,7 +73,7 @@ export class BuyButton extends React.Component<BuyButtonProps> {
throw e;
}
- this.props.onBuyProcessing(buyQuote, txHash);
+ this.props.onBuyProcessing(buyQuote, txHash, gasInfo.estimatedTimeMs);
try {
await web3Wrapper.awaitTransactionSuccessAsync(txHash);
} catch (e) {