aboutsummaryrefslogtreecommitdiffstats
path: root/packages/sol-compiler/src/compiler.ts
diff options
context:
space:
mode:
authorF. Eugene Aumson <gene@aumson.org>2018-08-17 01:47:33 +0800
committerF. Eugene Aumson <gene@aumson.org>2018-08-17 01:47:33 +0800
commit421a7394dfcbc714b35ada8f8d8a9945b989d3c7 (patch)
treea7466674b9edc713729b2f27ac0f3ed68f95dc00 /packages/sol-compiler/src/compiler.ts
parentacb3c0d0aa065edf1c71970467d038d52096e865 (diff)
downloaddexon-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/sol-compiler/src/compiler.ts')
-rw-r--r--packages/sol-compiler/src/compiler.ts5
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',