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) {
continue;
}
let solcVersion = this._solcVersionIfExists;
if (_.isUndefined(solcVersion)) {
const solcVersionRange = parseSolidityVersionRange(contractSource.source);
const availableCompilerVersions = _.keys(binPaths);
solcVersion = semver.maxSatisfying(availableCompilerVersions, solcVersionRange);
}
const solcVersion = _.isUndefined(this._solcVersionIfExists)
? semver.maxSatisfying(_.keys(binPaths), parseSolidityVersionRange(contractSource.source))
: this._solcVersionIfExists;
if (_.isUndefined(versionToInputs[solcVersion])) {
versionToInputs[solcVersion] = {
standardInput: {