diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-13 22:19:31 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-13 22:19:31 +0800 |
commit | a9db0e8ebe1360cf521302691998ef1f98e2dc51 (patch) | |
tree | 683ae243e2690ade19833d4986192d8a6e760144 /packages/dev-utils/src/web3_factory.ts | |
parent | a0791455e11022d16dbffba9b7080010a05d6522 (diff) | |
download | dexon-sol-tools-a9db0e8ebe1360cf521302691998ef1f98e2dc51.tar.gz dexon-sol-tools-a9db0e8ebe1360cf521302691998ef1f98e2dc51.tar.zst dexon-sol-tools-a9db0e8ebe1360cf521302691998ef1f98e2dc51.zip |
Properly and consistently parse ENV vars
Diffstat (limited to 'packages/dev-utils/src/web3_factory.ts')
-rw-r--r-- | packages/dev-utils/src/web3_factory.ts | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/packages/dev-utils/src/web3_factory.ts b/packages/dev-utils/src/web3_factory.ts index 3e4b39686..6435f0f9a 100644 --- a/packages/dev-utils/src/web3_factory.ts +++ b/packages/dev-utils/src/web3_factory.ts @@ -13,7 +13,7 @@ import * as process from 'process'; import { constants } from './constants'; import { coverage } from './coverage'; -import { env } from './env'; +import { env, EnvVars } from './env'; // HACK: web3 leaks XMLHttpRequest into the global scope and causes requests to hang // because they are using the wrong XHR package. @@ -27,11 +27,6 @@ export interface Web3Config { shouldUseInProcessGanache?: boolean; // default: false } -enum EnvVars { - SolidityCoverage = 'SOLIDITY_COVERAGE', - VerboseGanache = 'VERBOSE_GANACHE', -} - export const web3Factory = { create(config: Web3Config = {}): Web3 { const provider = this.getRpcProvider(config); |