diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-09 22:17:00 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-12 10:37:28 +0800 |
commit | 3b77e4ebf1d875ec1c1fdd91dec4e03e1ce5d391 (patch) | |
tree | 6bb8668722543ef26f5261c74589daee2e41217c /packages/dev-utils/src | |
parent | 6eebf717d5f007d3e7193d6ec0116156da5eecaa (diff) | |
download | dexon-sol-tools-3b77e4ebf1d875ec1c1fdd91dec4e03e1ce5d391.tar dexon-sol-tools-3b77e4ebf1d875ec1c1fdd91dec4e03e1ce5d391.tar.gz dexon-sol-tools-3b77e4ebf1d875ec1c1fdd91dec4e03e1ce5d391.tar.bz2 dexon-sol-tools-3b77e4ebf1d875ec1c1fdd91dec4e03e1ce5d391.tar.lz dexon-sol-tools-3b77e4ebf1d875ec1c1fdd91dec4e03e1ce5d391.tar.xz dexon-sol-tools-3b77e4ebf1d875ec1c1fdd91dec4e03e1ce5d391.tar.zst dexon-sol-tools-3b77e4ebf1d875ec1c1fdd91dec4e03e1ce5d391.zip |
Rename getCoverageSubprovider to getCoverageSubproviderSingleton
Diffstat (limited to 'packages/dev-utils/src')
-rw-r--r-- | packages/dev-utils/src/coverage.ts | 2 | ||||
-rw-r--r-- | packages/dev-utils/src/index.ts | 2 | ||||
-rw-r--r-- | packages/dev-utils/src/web3_factory.ts | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/packages/dev-utils/src/coverage.ts b/packages/dev-utils/src/coverage.ts index 1750d19ce..b39fa5de4 100644 --- a/packages/dev-utils/src/coverage.ts +++ b/packages/dev-utils/src/coverage.ts @@ -3,7 +3,7 @@ import * as _ from 'lodash'; let coverageSubprovider: CoverageSubprovider; -export function getCoverageSubprovider(): CoverageSubprovider { +export function getCoverageSubproviderSingleton(): CoverageSubprovider { if (_.isUndefined(coverageSubprovider)) { const artifactsPath = './src/artifacts'; const contractsPath = './src/contracts'; diff --git a/packages/dev-utils/src/index.ts b/packages/dev-utils/src/index.ts index c8009158f..61e9bcfa2 100644 --- a/packages/dev-utils/src/index.ts +++ b/packages/dev-utils/src/index.ts @@ -1,4 +1,4 @@ export { BlockchainLifecycle } from './blockchain_lifecycle'; export { web3Factory } from './web3_factory'; export { constants as devConstants } from './constants'; -export { getCoverageSubprovider } from './coverage'; +export { getCoverageSubproviderSingleton } from './coverage'; diff --git a/packages/dev-utils/src/web3_factory.ts b/packages/dev-utils/src/web3_factory.ts index 74359d4f6..4077dc13b 100644 --- a/packages/dev-utils/src/web3_factory.ts +++ b/packages/dev-utils/src/web3_factory.ts @@ -12,7 +12,7 @@ import * as _ from 'lodash'; import * as process from 'process'; import { constants } from './constants'; -import { getCoverageSubprovider } from './coverage'; +import { getCoverageSubproviderSingleton } from './coverage'; // HACK: web3 leaks XMLHttpRequest into the global scope and causes requests to hang // because they are using the wrong XHR package. @@ -36,7 +36,7 @@ export const web3Factory = { getRpcProvider(config: Web3Config = {}): Web3.Provider { const provider = new ProviderEngine(); if (process.env.COVERAGE) { - provider.addProvider(getCoverageSubprovider()); + provider.addProvider(getCoverageSubproviderSingleton()); } const hasAddresses = _.isUndefined(config.hasAddresses) || config.hasAddresses; if (!hasAddresses) { |