diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-09 22:39:50 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-12 10:37:28 +0800 |
commit | c5afca53a4e94b51956f10f564c2e9db00012c8f (patch) | |
tree | 213fa5e527ae16072a9a4be0086aeca488ac54f0 /packages/dev-utils | |
parent | b4cb88ab26a08851ab02e19e7105d29f8ee94184 (diff) | |
download | dexon-sol-tools-c5afca53a4e94b51956f10f564c2e9db00012c8f.tar dexon-sol-tools-c5afca53a4e94b51956f10f564c2e9db00012c8f.tar.gz dexon-sol-tools-c5afca53a4e94b51956f10f564c2e9db00012c8f.tar.bz2 dexon-sol-tools-c5afca53a4e94b51956f10f564c2e9db00012c8f.tar.lz dexon-sol-tools-c5afca53a4e94b51956f10f564c2e9db00012c8f.tar.xz dexon-sol-tools-c5afca53a4e94b51956f10f564c2e9db00012c8f.tar.zst dexon-sol-tools-c5afca53a4e94b51956f10f564c2e9db00012c8f.zip |
Rename COVERAGE to SOLIDITY_COVERAGS
Diffstat (limited to 'packages/dev-utils')
-rw-r--r-- | packages/dev-utils/CHANGELOG.md | 2 | ||||
-rw-r--r-- | packages/dev-utils/src/web3_factory.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/dev-utils/CHANGELOG.md b/packages/dev-utils/CHANGELOG.md index 3e5708402..8193b78ac 100644 --- a/packages/dev-utils/CHANGELOG.md +++ b/packages/dev-utils/CHANGELOG.md @@ -2,7 +2,7 @@ ## v0.3.0 - _TBD, 2018_ - * Add coverage subprovider if enabled (#426) + * Add coverage subprovider if SOLIDITY_COVERAGE env variable is true (#426) * Refactor `BlockchainLifecycle` to work with in-process ganache (#426) * Remove `RPC` class and move it's logic to `Web3Wrapper` (#426) diff --git a/packages/dev-utils/src/web3_factory.ts b/packages/dev-utils/src/web3_factory.ts index 4077dc13b..200670c3b 100644 --- a/packages/dev-utils/src/web3_factory.ts +++ b/packages/dev-utils/src/web3_factory.ts @@ -35,7 +35,7 @@ export const web3Factory = { }, getRpcProvider(config: Web3Config = {}): Web3.Provider { const provider = new ProviderEngine(); - if (process.env.COVERAGE) { + if (process.env.SOLIDITY_COVERAGE) { provider.addProvider(getCoverageSubproviderSingleton()); } const hasAddresses = _.isUndefined(config.hasAddresses) || config.hasAddresses; |