Comment for warming up cache

This commit is contained in:
Steve Klebanoff
2018-10-29 16:49:13 -07:00
parent cd419edf69
commit a49fc27042

View File

@@ -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();