diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-05-22 07:38:43 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-05-23 06:20:34 +0800 |
commit | 56d1b0103f100c19ce0ee1572980b949161532f4 (patch) | |
tree | ed806f5df4a17fc55371b84b038b50f284391443 /packages/contracts | |
parent | 1ff34bd0f4084d2f9dfd6f07447bb63684ac51ac (diff) | |
download | dexon-sol-tools-56d1b0103f100c19ce0ee1572980b949161532f4.tar.gz dexon-sol-tools-56d1b0103f100c19ce0ee1572980b949161532f4.tar.zst dexon-sol-tools-56d1b0103f100c19ce0ee1572980b949161532f4.zip |
Introduce CONFIG_FILE
Diffstat (limited to 'packages/contracts')
-rw-r--r-- | packages/contracts/test/utils/coverage.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/contracts/test/utils/coverage.ts b/packages/contracts/test/utils/coverage.ts index e3c5be428..58010e47f 100644 --- a/packages/contracts/test/utils/coverage.ts +++ b/packages/contracts/test/utils/coverage.ts @@ -14,7 +14,8 @@ export const coverage = { }, _getCoverageSubprovider(): CoverageSubprovider { const defaultFromAddress = devConstants.TESTRPC_FIRST_ADDRESS; - const config = JSON.parse(fs.readFileSync('compiler.json').toString()); + const CONFIG_FILE = 'compiler.json'; + const config = JSON.parse(fs.readFileSync(CONFIG_FILE).toString()); const zeroExArtifactsAdapter = new ZeroExArtifactAdapter(config.artifactsDir, config.contractsDir); return new CoverageSubprovider(zeroExArtifactsAdapter, defaultFromAddress); }, |