Omit remapping in compiler settings equality checks

This commit is contained in:
Leonid Logvinov 2019-02-07 13:20:03 +01:00
parent d567c58d3b
commit 2b7699c26a
No known key found for this signature in database
GPG Key ID: 0DD294BFDE8C95D4

View File

@ -327,7 +327,7 @@ export class Compiler {
const isUserOnLatestVersion = currentArtifact.schemaVersion === constants.LATEST_ARTIFACT_VERSION; const isUserOnLatestVersion = currentArtifact.schemaVersion === constants.LATEST_ARTIFACT_VERSION;
const didCompilerSettingsChange = !_.isEqual( const didCompilerSettingsChange = !_.isEqual(
_.omit(currentArtifact.compiler.settings, 'remappings'), _.omit(currentArtifact.compiler.settings, 'remappings'),
this._compilerSettings, _.omit(this._compilerSettings, 'remappings'),
); );
const didSourceChange = currentArtifact.sourceTreeHashHex !== contractData.sourceTreeHashHex; const didSourceChange = currentArtifact.sourceTreeHashHex !== contractData.sourceTreeHashHex;
return !isUserOnLatestVersion || didCompilerSettingsChange || didSourceChange; return !isUserOnLatestVersion || didCompilerSettingsChange || didSourceChange;