Skip to content
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1652 from 0xProject/fix/sol-compiler-settings
Browse files Browse the repository at this point in the history
Fix a bug when combining sol-compiler settings from different sources
  • Loading branch information
LogvinovLeon authored Feb 26, 2019
2 parents 7c49207 + 885031d commit 240f482
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
11 changes: 10 additions & 1 deletion packages/sol-compiler/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
[
{
"version": "3.1.1",
"changes": [
{
"note": "Fix a bug when combining compilerSettings from different sources",
"pr": 1652
}
]
},
{
"version": "3.1.0",
"changes": [
Expand Down Expand Up @@ -513,4 +522,4 @@
],
"timestamp": 1518102000
}
]
]
6 changes: 5 additions & 1 deletion packages/sol-compiler/src/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ export class Compiler {
assert.doesConformToSchema('compiler.json', config, compilerOptionsSchema);
this._contractsDir = path.resolve(passedOpts.contractsDir || config.contractsDir || DEFAULT_CONTRACTS_DIR);
this._solcVersionIfExists = passedOpts.solcVersion || config.solcVersion;
this._compilerSettings = passedOpts.compilerSettings || config.compilerSettings || DEFAULT_COMPILER_SETTINGS;
this._compilerSettings = {
...DEFAULT_COMPILER_SETTINGS,
...config.compilerSettings,
...passedOpts.compilerSettings,
};
this._artifactsDir = passedOpts.artifactsDir || config.artifactsDir || DEFAULT_ARTIFACTS_DIR;
this._specifiedContracts = passedOpts.contracts || config.contracts || ALL_CONTRACTS_IDENTIFIER;
this._useDockerisedSolc =
Expand Down

0 comments on commit 240f482

Please sign in to comment.