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 | |
parent | ec41e314b09ed348e1d268b1d896dbde275deb1b (diff) | |
download | dexon-0x-contracts-455c78dfb1ee5a104964b70d0132438b86f6c437.tar.gz dexon-0x-contracts-455c78dfb1ee5a104964b70d0132438b86f6c437.tar.zst dexon-0x-contracts-455c78dfb1ee5a104964b70d0132438b86f6c437.zip |
renamed variable `compiled` to `compilerOutput`
-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: { |