From 7c96fa45f85906a9ba4d09b8aaa4759e7d55286f Mon Sep 17 00:00:00 2001 From: "F. Eugene Aumson" Date: Wed, 15 Aug 2018 12:50:20 -0700 Subject: comments --- packages/sol-compiler/src/compiler.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packages/sol-compiler') diff --git a/packages/sol-compiler/src/compiler.ts b/packages/sol-compiler/src/compiler.ts index 1c08cb324..ff3805073 100644 --- a/packages/sol-compiler/src/compiler.ts +++ b/packages/sol-compiler/src/compiler.ts @@ -188,6 +188,8 @@ export class Compiler { ? semver.maxSatisfying(_.keys(binPaths), parseSolidityVersionRange(contractSource.source)) : this._solcVersionIfExists; if (_.isUndefined(versionToInputs[solcVersion])) { + // no inputs batched yet for this version. + // prepare object to hold this batch. versionToInputs[solcVersion] = { standardInput: { language: 'Solidity', @@ -197,6 +199,7 @@ export class Compiler { contractsToCompile: [], }; } + // add input to the right version batch versionToInputs[solcVersion].standardInput.sources[contractSource.path] = { content: contractSource.source, }; -- cgit v1.2.3