From 3787e4a83cec8078388e5d6cfadd45652dbbbd7c Mon Sep 17 00:00:00 2001 From: Leonid Logvinov Date: Fri, 9 Mar 2018 15:18:23 +0100 Subject: Fix variable name --- packages/deployer/src/compiler.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'packages/deployer') diff --git a/packages/deployer/src/compiler.ts b/packages/deployer/src/compiler.ts index 80addc088..82350d0b3 100644 --- a/packages/deployer/src/compiler.ts +++ b/packages/deployer/src/compiler.ts @@ -189,18 +189,18 @@ export class Compiler { } const fullSolcVersion = binPaths[contractSpecificSourceData.solcVersion]; - const compiler_bin_filename = path.join(__dirname, '../../solc_bin', fullSolcVersion); + const compilerBinFilename = path.join(__dirname, '../../solc_bin', fullSolcVersion); let solcjs: string; - if (fs.existsSync(compiler_bin_filename)) { - solcjs = fs.readFileSync(compiler_bin_filename).toString(); + if (fs.existsSync(compilerBinFilename)) { + solcjs = fs.readFileSync(compilerBinFilename).toString(); } else { utils.consoleLog(`Downloading ${fullSolcVersion}...`); const url = `https://ethereum.github.io/solc-bin/bin/${fullSolcVersion}`; const response = await fetch(url); solcjs = await response.text(); - fs.writeFileSync(compiler_bin_filename, solcjs); + fs.writeFileSync(compilerBinFilename, solcjs); } - const solcInstance = solc.setupMethods(requireFromString(solcjs, compiler_bin_filename)); + const solcInstance = solc.setupMethods(requireFromString(solcjs, compilerBinFilename)); utils.consoleLog(`Compiling ${fileName}...`); const source = this._contractSources[fileName]; -- cgit v1.2.3