diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-12 19:53:07 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-12 19:53:07 +0800 |
commit | 075f286130742351edc6f6609d9d4738a3b53f61 (patch) | |
tree | 8d2d0f81e15a34ce870fa5f04570308560f097fa /packages/dev-utils | |
parent | 32e3cab116eedb940c5e1be2a11daeb31260ce77 (diff) | |
download | dexon-sol-tools-075f286130742351edc6f6609d9d4738a3b53f61.tar dexon-sol-tools-075f286130742351edc6f6609d9d4738a3b53f61.tar.gz dexon-sol-tools-075f286130742351edc6f6609d9d4738a3b53f61.tar.bz2 dexon-sol-tools-075f286130742351edc6f6609d9d4738a3b53f61.tar.lz dexon-sol-tools-075f286130742351edc6f6609d9d4738a3b53f61.tar.xz dexon-sol-tools-075f286130742351edc6f6609d9d4738a3b53f61.tar.zst dexon-sol-tools-075f286130742351edc6f6609d9d4738a3b53f61.zip |
Introduce TESTRPC_FIRST_ADDRESS
Diffstat (limited to 'packages/dev-utils')
-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); }, }; |