diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-05-15 02:01:18 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-05-23 06:20:34 +0800 |
commit | 974575b695108dd70f4b165f6789f71c3647c2b1 (patch) | |
tree | 3d589c157c51c02066583a08bdec879aa7a18735 /packages/dev-utils | |
parent | 60b1fdd367101047d433d4b9c1c47925925296a2 (diff) | |
download | dexon-sol-tools-974575b695108dd70f4b165f6789f71c3647c2b1.tar dexon-sol-tools-974575b695108dd70f4b165f6789f71c3647c2b1.tar.gz dexon-sol-tools-974575b695108dd70f4b165f6789f71c3647c2b1.tar.bz2 dexon-sol-tools-974575b695108dd70f4b165f6789f71c3647c2b1.tar.lz dexon-sol-tools-974575b695108dd70f4b165f6789f71c3647c2b1.tar.xz dexon-sol-tools-974575b695108dd70f4b165f6789f71c3647c2b1.tar.zst dexon-sol-tools-974575b695108dd70f4b165f6789f71c3647c2b1.zip |
Make sol-cov work with truffle and other artifact adapters
Diffstat (limited to 'packages/dev-utils')
-rw-r--r-- | packages/dev-utils/src/coverage.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/dev-utils/src/coverage.ts b/packages/dev-utils/src/coverage.ts index 6f7640835..caf04672f 100644 --- a/packages/dev-utils/src/coverage.ts +++ b/packages/dev-utils/src/coverage.ts @@ -1,4 +1,4 @@ -import { CoverageSubprovider } from '@0xproject/sol-cov'; +import { CoverageSubprovider, ZeroExArtifactAdapter } from '@0xproject/sol-cov'; import * as _ from 'lodash'; import { constants } from './constants'; @@ -16,6 +16,7 @@ export const coverage = { const artifactsPath = '../migrations/artifacts/1.0.0'; const contractsPath = 'src/contracts'; const defaultFromAddress = constants.TESTRPC_FIRST_ADDRESS; - return new CoverageSubprovider(artifactsPath, contractsPath, defaultFromAddress); + const zeroExArtifactsAdapter = new ZeroExArtifactAdapter(artifactsPath, contractsPath); + return new CoverageSubprovider(zeroExArtifactsAdapter, defaultFromAddress); }, }; |