blob: b39fa5de41eae6539794cbb445b12deb8d845eba (
plain) (
tree)
|
|
import { CoverageSubprovider } from '@0xproject/sol-cov';
import * as _ from 'lodash';
let coverageSubprovider: CoverageSubprovider;
export function getCoverageSubproviderSingleton(): CoverageSubprovider {
if (_.isUndefined(coverageSubprovider)) {
const artifactsPath = './src/artifacts';
const contractsPath = './src/contracts';
const networkId = 50;
coverageSubprovider = new CoverageSubprovider(artifactsPath, contractsPath, networkId);
}
return coverageSubprovider;
}
|