aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-cov
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-06-12 01:28:30 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-06-12 01:28:30 +0800
commit927ccc489c8cd69723bb2b13f81de150d7b255d0 (patch)
treec8e47e9e42e58febc45411a360224535786cba48 /packages/sol-cov
parent6d5949ba9c3fe8e99bee2ae8f5b6fac47211b18b (diff)
downloaddexon-sol-tools-927ccc489c8cd69723bb2b13f81de150d7b255d0.tar
dexon-sol-tools-927ccc489c8cd69723bb2b13f81de150d7b255d0.tar.gz
dexon-sol-tools-927ccc489c8cd69723bb2b13f81de150d7b255d0.tar.bz2
dexon-sol-tools-927ccc489c8cd69723bb2b13f81de150d7b255d0.tar.lz
dexon-sol-tools-927ccc489c8cd69723bb2b13f81de150d7b255d0.tar.xz
dexon-sol-tools-927ccc489c8cd69723bb2b13f81de150d7b255d0.tar.zst
dexon-sol-tools-927ccc489c8cd69723bb2b13f81de150d7b255d0.zip
Fix a bug in SolCompilerArtifacts adapter config overriding
Diffstat (limited to 'packages/sol-cov')
-rw-r--r--packages/sol-cov/src/artifact_adapters/sol_compiler_artifact_adapter.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/sol-cov/src/artifact_adapters/sol_compiler_artifact_adapter.ts b/packages/sol-cov/src/artifact_adapters/sol_compiler_artifact_adapter.ts
index 0be661106..051782ba4 100644
--- a/packages/sol-cov/src/artifact_adapters/sol_compiler_artifact_adapter.ts
+++ b/packages/sol-cov/src/artifact_adapters/sol_compiler_artifact_adapter.ts
@@ -20,11 +20,11 @@ export class SolCompilerArtifactAdapter extends AbstractArtifactAdapter {
if (_.isUndefined(artifactsPath) && _.isUndefined(config.artifactsDir)) {
throw new Error(`artifactsDir not found in ${CONFIG_FILE}`);
}
- this._artifactsPath = config.artifactsDir;
+ this._artifactsPath = artifactsPath || config.artifactsDir;
if (_.isUndefined(sourcesPath) && _.isUndefined(config.contractsDir)) {
throw new Error(`contractsDir not found in ${CONFIG_FILE}`);
}
- this._sourcesPath = config.contractsDir;
+ this._sourcesPath = sourcesPath || config.contractsDir;
}
public async collectContractsDataAsync(): Promise<ContractData[]> {
const artifactsGlob = `${this._artifactsPath}/**/*.json`;