aboutsummaryrefslogtreecommitdiffstats
path: root/packages
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-30 07:49:13 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-30 07:49:13 +0800
commita49fc27042f9797f7a035e5471e572b148679456 (patch)
tree9fe370a5e19e494ffd9b5834691277f9ed9b0add /packages
parentcd419edf69ae13c6eb7eb1daadcfa73bd731e6f4 (diff)
downloaddexon-sol-tools-a49fc27042f9797f7a035e5471e572b148679456.tar
dexon-sol-tools-a49fc27042f9797f7a035e5471e572b148679456.tar.gz
dexon-sol-tools-a49fc27042f9797f7a035e5471e572b148679456.tar.bz2
dexon-sol-tools-a49fc27042f9797f7a035e5471e572b148679456.tar.lz
dexon-sol-tools-a49fc27042f9797f7a035e5471e572b148679456.tar.xz
dexon-sol-tools-a49fc27042f9797f7a035e5471e572b148679456.tar.zst
dexon-sol-tools-a49fc27042f9797f7a035e5471e572b148679456.zip
Comment for warming up cache
Diffstat (limited to 'packages')
-rw-r--r--packages/instant/src/components/zero_ex_instant.tsx2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/instant/src/components/zero_ex_instant.tsx b/packages/instant/src/components/zero_ex_instant.tsx
index 87069bb6f..63c2c9072 100644
--- a/packages/instant/src/components/zero_ex_instant.tsx
+++ b/packages/instant/src/components/zero_ex_instant.tsx
@@ -80,6 +80,8 @@ export class ZeroExInstant extends React.Component<ZeroExInstantProps> {
// tslint:disable-next-line:no-floating-promises
asyncData.fetchAndDispatchToStore(this._store);
// tslint:disable-next-line:no-floating-promises
+ // warm up the gas price estimator cache just in case we can't
+ // grab the gas price estimate when submitting the transaction
gasPriceEstimator.getFastAmountInWeiAsync();
// tslint:disable-next-line:no-floating-promises
this._flashErrorIfWrongNetwork();