diff options
Diffstat (limited to 'packages')
-rw-r--r-- | packages/dev-utils/src/constants.ts | 1 | ||||
-rw-r--r-- | packages/dev-utils/src/coverage.ts | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/packages/dev-utils/src/constants.ts b/packages/dev-utils/src/constants.ts index b018ba791..05bcc1638 100644 --- a/packages/dev-utils/src/constants.ts +++ b/packages/dev-utils/src/constants.ts @@ -2,4 +2,5 @@ export const constants = { RPC_URL: 'http://localhost:8545', RPC_PORT: 8545, GAS_ESTIMATE: 5000000, + TESTRPC_FIRST_ADDRESS: '0x5409ed021d9299bf6814279a6a1411a7e866a631', }; diff --git a/packages/dev-utils/src/coverage.ts b/packages/dev-utils/src/coverage.ts index a29acf5da..40bb47e2d 100644 --- a/packages/dev-utils/src/coverage.ts +++ b/packages/dev-utils/src/coverage.ts @@ -1,6 +1,8 @@ import { CoverageSubprovider } from '@0xproject/sol-cov'; import * as _ from 'lodash'; +import { constants } from './constants'; + let coverageSubprovider: CoverageSubprovider; export const coverage = { @@ -14,7 +16,7 @@ export const coverage = { const artifactsPath = './src/artifacts'; const contractsPath = './src/contracts'; const networkId = 50; - const defaultFromAddress = '0x5409ed021d9299bf6814279a6a1411a7e866a631'; + const defaultFromAddress = constants.TESTRPC_FIRST_ADDRESS; return new CoverageSubprovider(artifactsPath, contractsPath, networkId, defaultFromAddress); }, }; |