diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-02-07 19:13:24 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2019-02-07 19:13:24 +0800 |
commit | fd4d3cff880e9131d55a4e534c17289db5f72b6b (patch) | |
tree | 252302871a01eee80ae64966ed72dc82b6eda1aa /packages/sol-compiler/src/compiler.ts | |
parent | 88432a5e673e0b98aa45145394e6b6fe1bedf20d (diff) | |
download | dexon-0x-contracts-fd4d3cff880e9131d55a4e534c17289db5f72b6b.tar.gz dexon-0x-contracts-fd4d3cff880e9131d55a4e534c17289db5f72b6b.tar.zst dexon-0x-contracts-fd4d3cff880e9131d55a4e534c17289db5f72b6b.zip |
Fix sol-compiler bug with remappings causing smart recompilation to now work
Diffstat (limited to 'packages/sol-compiler/src/compiler.ts')
-rw-r--r-- | packages/sol-compiler/src/compiler.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/sol-compiler/src/compiler.ts b/packages/sol-compiler/src/compiler.ts index 743acacaa..c5dea1155 100644 --- a/packages/sol-compiler/src/compiler.ts +++ b/packages/sol-compiler/src/compiler.ts @@ -324,7 +324,10 @@ export class Compiler { } else { const currentArtifact = contractData.currentArtifactIfExists as ContractArtifact; const isUserOnLatestVersion = currentArtifact.schemaVersion === constants.LATEST_ARTIFACT_VERSION; - const didCompilerSettingsChange = !_.isEqual(currentArtifact.compiler.settings, this._compilerSettings); + const didCompilerSettingsChange = !_.isEqual( + _.omit(currentArtifact.compiler.settings, 'remappings'), + this._compilerSettings, + ); const didSourceChange = currentArtifact.sourceTreeHashHex !== contractData.sourceTreeHashHex; return !isUserOnLatestVersion || didCompilerSettingsChange || didSourceChange; } |