diff options
author | Fabio Berger <me@fabioberger.com> | 2018-01-31 03:53:22 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-01-31 03:53:22 +0800 |
commit | adc6170f029cdcee7c3197b60e579e87af402d1e (patch) | |
tree | a7b16b75b1ad1b5357453879134b27812c34add8 | |
parent | 02600f40d27ac314ac80221f4a240bb73f762fc2 (diff) | |
download | dexon-0x-contracts-adc6170f029cdcee7c3197b60e579e87af402d1e.tar.gz dexon-0x-contracts-adc6170f029cdcee7c3197b60e579e87af402d1e.tar.zst dexon-0x-contracts-adc6170f029cdcee7c3197b60e579e87af402d1e.zip |
Make default gasPrice more readable
-rw-r--r-- | packages/website/ts/blockchain.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/website/ts/blockchain.ts b/packages/website/ts/blockchain.ts index 38d405033..d53994c0c 100644 --- a/packages/website/ts/blockchain.ts +++ b/packages/website/ts/blockchain.ts @@ -54,6 +54,7 @@ import FilterSubprovider = require('web3-provider-engine/subproviders/filters'); import * as MintableArtifacts from '../contracts/Mintable.json'; const BLOCK_NUMBER_BACK_TRACK = 50; +const GWEI_IN_WEI = 1000000000; export class Blockchain { public networkId: number; @@ -122,7 +123,8 @@ export class Blockchain { constructor(dispatcher: Dispatcher, isSalePage: boolean = false) { this._dispatcher = dispatcher; this._userAddress = ''; - this._defaultGasPrice = new BigNumber(30000000000); + const defaultGasPrice = GWEI_IN_WEI * 30; + this._defaultGasPrice = new BigNumber(defaultGasPrice); // tslint:disable-next-line:no-floating-promises this._updateDefaultGasPriceAsync(); // tslint:disable-next-line:no-floating-promises |