aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorF. Eugene Aumson <gene@aumson.org>2018-08-17 01:48:33 +0800
committerF. Eugene Aumson <gene@aumson.org>2018-08-17 01:48:33 +0800
commita607a61bde1677833a04765b8691184c49b04213 (patch)
tree6218ec48dc83cb051a7a7198a21bc3750d32010c
parent421a7394dfcbc714b35ada8f8d8a9945b989d3c7 (diff)
downloaddexon-0x-contracts-a607a61bde1677833a04765b8691184c49b04213.tar.gz
dexon-0x-contracts-a607a61bde1677833a04765b8691184c49b04213.tar.zst
dexon-0x-contracts-a607a61bde1677833a04765b8691184c49b04213.zip
clarify iteration range
-rw-r--r--packages/sol-compiler/src/compiler.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/sol-compiler/src/compiler.ts b/packages/sol-compiler/src/compiler.ts
index 713d8abe8..bb870e0cf 100644
--- a/packages/sol-compiler/src/compiler.ts
+++ b/packages/sol-compiler/src/compiler.ts
@@ -197,7 +197,8 @@ export class Compiler {
versionToInputs[solcVersion].contractsToCompile.push(contractSource.path);
}
- for (const solcVersion of _.keys(versionToInputs)) {
+ const solcVersions = _.keys(versionToInputs);
+ for (const solcVersion of solcVersions) {
const input = versionToInputs[solcVersion];
logUtils.log(
`Compiling ${input.contractsToCompile.length} contracts (${