aboutsummaryrefslogtreecommitdiffstats
path: root/packages/dev-utils
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2018-05-30 02:22:57 +0800
committerAmir Bandeali <abandeali1@gmail.com>2018-05-31 08:11:31 +0800
commit8f2fd9b603f74aa8a44dc0e8c3b845d497f9b279 (patch)
treeda8c19511a2f193a3ddd08f6ce86936ca1c0dbcd /packages/dev-utils
parentd625b65a095381c3fa8dd3192ee2115ee739cc07 (diff)
downloaddexon-0x-contracts-8f2fd9b603f74aa8a44dc0e8c3b845d497f9b279.tar.gz
dexon-0x-contracts-8f2fd9b603f74aa8a44dc0e8c3b845d497f9b279.tar.zst
dexon-0x-contracts-8f2fd9b603f74aa8a44dc0e8c3b845d497f9b279.zip
Rename Signer to Wallet, rename GAS_ESTIMATE to GAS_LIMIT
Diffstat (limited to 'packages/dev-utils')
-rw-r--r--packages/dev-utils/src/constants.ts2
-rw-r--r--packages/dev-utils/src/web3_factory.ts4
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/dev-utils/src/constants.ts b/packages/dev-utils/src/constants.ts
index 48efd62cc..56e87d764 100644
--- a/packages/dev-utils/src/constants.ts
+++ b/packages/dev-utils/src/constants.ts
@@ -1,6 +1,6 @@
export const constants = {
RPC_URL: 'http://localhost:8545',
RPC_PORT: 8545,
- GAS_ESTIMATE: 8000000,
+ GAS_LIMIT: 7000000,
TESTRPC_FIRST_ADDRESS: '0x5409ed021d9299bf6814279a6a1411a7e866a631',
};
diff --git a/packages/dev-utils/src/web3_factory.ts b/packages/dev-utils/src/web3_factory.ts
index 98fccd835..c273035da 100644
--- a/packages/dev-utils/src/web3_factory.ts
+++ b/packages/dev-utils/src/web3_factory.ts
@@ -28,7 +28,7 @@ export const web3Factory = {
if (!hasAddresses) {
provider.addProvider(new EmptyWalletSubprovider());
}
- provider.addProvider(new FakeGasEstimateSubprovider(constants.GAS_ESTIMATE));
+ provider.addProvider(new FakeGasEstimateSubprovider(constants.GAS_LIMIT));
const logger = {
log: (arg: any) => {
fs.appendFileSync('ganache.log', `${arg}\n`);
@@ -41,7 +41,7 @@ export const web3Factory = {
}
provider.addProvider(
new GanacheSubprovider({
- gasLimit: constants.GAS_ESTIMATE,
+ gasLimit: constants.GAS_LIMIT,
logger,
verbose: env.parseBoolean(EnvVars.VerboseGanache),
port: 8545,