From 075f286130742351edc6f6609d9d4738a3b53f61 Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Mon, 12 Mar 2018 12:53:07 +0100 Subject: Introduce TESTRPC_FIRST_ADDRESS --- packages/dev-utils/src/constants.ts | 1 + packages/dev-utils/src/coverage.ts | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'packages') 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); }, }; -- cgit v1.2.3