diff options
author | F. Eugene Aumson <gene@aumson.org> | 2018-08-17 01:47:33 +0800 |
---|---|---|
committer | F. Eugene Aumson <gene@aumson.org> | 2018-08-17 01:47:33 +0800 |
commit | 421a7394dfcbc714b35ada8f8d8a9945b989d3c7 (patch) | |
tree | a7466674b9edc713729b2f27ac0f3ed68f95dc00 /packages | |
parent | acb3c0d0aa065edf1c71970467d038d52096e865 (diff) | |
download | dexon-sol-tools-421a7394dfcbc714b35ada8f8d8a9945b989d3c7.tar dexon-sol-tools-421a7394dfcbc714b35ada8f8d8a9945b989d3c7.tar.gz dexon-sol-tools-421a7394dfcbc714b35ada8f8d8a9945b989d3c7.tar.bz2 dexon-sol-tools-421a7394dfcbc714b35ada8f8d8a9945b989d3c7.tar.lz dexon-sol-tools-421a7394dfcbc714b35ada8f8d8a9945b989d3c7.tar.xz dexon-sol-tools-421a7394dfcbc714b35ada8f8d8a9945b989d3c7.tar.zst dexon-sol-tools-421a7394dfcbc714b35ada8f8d8a9945b989d3c7.zip |
scrap comments in favor of self-documentation
Diffstat (limited to 'packages')
-rw-r--r-- | packages/sol-compiler/src/compiler.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/sol-compiler/src/compiler.ts b/packages/sol-compiler/src/compiler.ts index bd7f751df..713d8abe8 100644 --- a/packages/sol-compiler/src/compiler.ts +++ b/packages/sol-compiler/src/compiler.ts @@ -179,9 +179,8 @@ export class Compiler { const solcVersion = _.isUndefined(this._solcVersionIfExists) ? 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. + const isFirstContractWithThisVersion = _.isUndefined(versionToInputs[solcVersion]); + if (isFirstContractWithThisVersion) { versionToInputs[solcVersion] = { standardInput: { language: 'Solidity', |