diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-09 22:18:23 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-03-12 10:37:28 +0800 |
commit | 3787e4a83cec8078388e5d6cfadd45652dbbbd7c (patch) | |
tree | 20b094f454e1977643c811ae9fb7732547fa32e5 /packages/deployer/src/compiler.ts | |
parent | 3b77e4ebf1d875ec1c1fdd91dec4e03e1ce5d391 (diff) | |
download | dexon-sol-tools-3787e4a83cec8078388e5d6cfadd45652dbbbd7c.tar dexon-sol-tools-3787e4a83cec8078388e5d6cfadd45652dbbbd7c.tar.gz dexon-sol-tools-3787e4a83cec8078388e5d6cfadd45652dbbbd7c.tar.bz2 dexon-sol-tools-3787e4a83cec8078388e5d6cfadd45652dbbbd7c.tar.lz dexon-sol-tools-3787e4a83cec8078388e5d6cfadd45652dbbbd7c.tar.xz dexon-sol-tools-3787e4a83cec8078388e5d6cfadd45652dbbbd7c.tar.zst dexon-sol-tools-3787e4a83cec8078388e5d6cfadd45652dbbbd7c.zip |
Fix variable name
Diffstat (limited to 'packages/deployer/src/compiler.ts')
-rw-r--r-- | packages/deployer/src/compiler.ts | 10 |
1 files changed, 5 insertions, 5 deletions
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]; |