diff options
author | F. Eugene Aumson <gene@aumson.org> | 2018-08-16 05:09:57 +0800 |
---|---|---|
committer | F. Eugene Aumson <gene@aumson.org> | 2018-08-16 05:09:57 +0800 |
commit | 455c78dfb1ee5a104964b70d0132438b86f6c437 (patch) | |
tree | 789bed209548a99d9e4af97ba39574ac63204ece /packages | |
parent | ec41e314b09ed348e1d268b1d896dbde275deb1b (diff) | |
download | dexon-sol-tools-455c78dfb1ee5a104964b70d0132438b86f6c437.tar dexon-sol-tools-455c78dfb1ee5a104964b70d0132438b86f6c437.tar.gz dexon-sol-tools-455c78dfb1ee5a104964b70d0132438b86f6c437.tar.bz2 dexon-sol-tools-455c78dfb1ee5a104964b70d0132438b86f6c437.tar.lz dexon-sol-tools-455c78dfb1ee5a104964b70d0132438b86f6c437.tar.xz dexon-sol-tools-455c78dfb1ee5a104964b70d0132438b86f6c437.tar.zst dexon-sol-tools-455c78dfb1ee5a104964b70d0132438b86f6c437.zip |
renamed variable `compiled` to `compilerOutput`
Diffstat (limited to 'packages')
-rw-r--r-- | packages/sol-compiler/src/compiler.ts | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/sol-compiler/src/compiler.ts b/packages/sol-compiler/src/compiler.ts index a676423cb..f0cb2ded3 100644 --- a/packages/sol-compiler/src/compiler.ts +++ b/packages/sol-compiler/src/compiler.ts @@ -219,14 +219,14 @@ export class Compiler { const { solcInstance, fullSolcVersion } = await Compiler._getSolcAsync(solcVersion); - const compiled = this._compile(solcInstance, input.standardInput); + const compilerOutput = this._compile(solcInstance, input.standardInput); for (const contractPath of input.contractsToCompile) { await this._verifyAndPersistCompiledContractAsync( contractPath, contractPathToData[contractPath], fullSolcVersion, - compiled, + compilerOutput, ); } } @@ -235,13 +235,13 @@ export class Compiler { contractPath: string, contractMetadata: ContractData, fullSolcVersion: string, - compiled: solc.StandardOutput, + compilerOutput: solc.StandardOutput, ): Promise<void> { const contractName = contractMetadata.contractName; const sourceTreeHashHex = contractMetadata.sourceTreeHashHex; const currentArtifactIfExists = contractMetadata.currentArtifactIfExists; - const compiledData = compiled.contracts[contractPath][contractName]; + const compiledData = compilerOutput.contracts[contractPath][contractName]; if (_.isUndefined(compiledData)) { throw new Error( `Contract ${contractName} not found in ${contractPath}. Please make sure your contract has the same name as it's file name`, @@ -262,12 +262,12 @@ export class Compiler { } const sourceCodes = _.mapValues( - compiled.sources, + compilerOutput.sources, (_1, sourceFilePath) => this._resolver.resolve(sourceFilePath).source, ); const contractVersion: ContractVersionData = { compilerOutput: compiledData, - sources: compiled.sources, + sources: compilerOutput.sources, sourceCodes, sourceTreeHashHex, compiler: { |