remedy missing *IfExists identifier suffix

This commit is contained in:
F. Eugene Aumson 2018-08-15 11:58:10 -07:00
parent 558286467b
commit ad9a7d72ce

View File

@ -184,12 +184,9 @@ export class Compiler {
if (!shouldCompile) { if (!shouldCompile) {
continue; continue;
} }
let solcVersion = this._solcVersionIfExists; const solcVersion = _.isUndefined(this._solcVersionIfExists)
if (_.isUndefined(solcVersion)) { ? semver.maxSatisfying(_.keys(binPaths), parseSolidityVersionRange(contractSource.source))
const solcVersionRange = parseSolidityVersionRange(contractSource.source); : this._solcVersionIfExists;
const availableCompilerVersions = _.keys(binPaths);
solcVersion = semver.maxSatisfying(availableCompilerVersions, solcVersionRange);
}
if (_.isUndefined(versionToInputs[solcVersion])) { if (_.isUndefined(versionToInputs[solcVersion])) {
versionToInputs[solcVersion] = { versionToInputs[solcVersion] = {
standardInput: { standardInput: {