comments
This commit is contained in:
parent
ad9a7d72ce
commit
7c96fa45f8
@ -188,6 +188,8 @@ export class Compiler {
|
|||||||
? semver.maxSatisfying(_.keys(binPaths), parseSolidityVersionRange(contractSource.source))
|
? semver.maxSatisfying(_.keys(binPaths), parseSolidityVersionRange(contractSource.source))
|
||||||
: this._solcVersionIfExists;
|
: this._solcVersionIfExists;
|
||||||
if (_.isUndefined(versionToInputs[solcVersion])) {
|
if (_.isUndefined(versionToInputs[solcVersion])) {
|
||||||
|
// no inputs batched yet for this version.
|
||||||
|
// prepare object to hold this batch.
|
||||||
versionToInputs[solcVersion] = {
|
versionToInputs[solcVersion] = {
|
||||||
standardInput: {
|
standardInput: {
|
||||||
language: 'Solidity',
|
language: 'Solidity',
|
||||||
@ -197,6 +199,7 @@ export class Compiler {
|
|||||||
contractsToCompile: [],
|
contractsToCompile: [],
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
// add input to the right version batch
|
||||||
versionToInputs[solcVersion].standardInput.sources[contractSource.path] = {
|
versionToInputs[solcVersion].standardInput.sources[contractSource.path] = {
|
||||||
content: contractSource.source,
|
content: contractSource.source,
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user