aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-01-31 03:53:22 +0800
committerFabio Berger <me@fabioberger.com>2018-01-31 03:53:22 +0800
commitadc6170f029cdcee7c3197b60e579e87af402d1e (patch)
treea7b16b75b1ad1b5357453879134b27812c34add8 /packages/website/ts
parent02600f40d27ac314ac80221f4a240bb73f762fc2 (diff)
downloaddexon-sol-tools-adc6170f029cdcee7c3197b60e579e87af402d1e.tar
dexon-sol-tools-adc6170f029cdcee7c3197b60e579e87af402d1e.tar.gz
dexon-sol-tools-adc6170f029cdcee7c3197b60e579e87af402d1e.tar.bz2
dexon-sol-tools-adc6170f029cdcee7c3197b60e579e87af402d1e.tar.lz
dexon-sol-tools-adc6170f029cdcee7c3197b60e579e87af402d1e.tar.xz
dexon-sol-tools-adc6170f029cdcee7c3197b60e579e87af402d1e.tar.zst
dexon-sol-tools-adc6170f029cdcee7c3197b60e579e87af402d1e.zip
Make default gasPrice more readable
Diffstat (limited to 'packages/website/ts')
-rw-r--r--packages/website/ts/blockchain.ts4
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