diff options
author | Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com> | 2023-01-17 12:31:49 -0500 |
---|---|---|
committer | Jeremy Rifkin <51220084+jeremy-rifkin@users.noreply.github.com> | 2023-01-17 12:31:49 -0500 |
commit | 6207cb2d6e30d709c29175aa9a94707a0f9934d1 (patch) | |
tree | 5e51c3ea00760b5452d128d3cf4f54f0c511d65d /lib/compilers/solidity.js | |
parent | 68aa631366bfb5e6efd74f03326795e70894019a (diff) | |
download | compiler-explorer-6207cb2d6e30d709c29175aa9a94707a0f9934d1.tar.gz compiler-explorer-6207cb2d6e30d709c29175aa9a94707a0f9934d1.zip |
npm run lint to get const fixesgh-5871
Diffstat (limited to 'lib/compilers/solidity.js')
-rw-r--r-- | lib/compilers/solidity.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compilers/solidity.js b/lib/compilers/solidity.js index a8e654d8e..8577bfca8 100644 --- a/lib/compilers/solidity.js +++ b/lib/compilers/solidity.js @@ -171,7 +171,7 @@ export class SolidityCompiler extends BaseCompiler { // and reverting if a multiplication results in // integer overflow, etc. const processGeneratedSources = generatedSourcesData => { - let generatedSources = {}; + const generatedSources = {}; for (const generatedSource of generatedSourcesData) { generatedSources[generatedSource.id] = generatedSource.ast.statements.map(statement => { const [begin, length] = statement.src.split(':').map(x => parseInt(x)); @@ -202,7 +202,7 @@ export class SolidityCompiler extends BaseCompiler { // first iterate the opcodes to find all the tags, // and assign human-readable names to as many of // them as we can - let tagNames = {}; + const tagNames = {}; const processPossibleTagOpcode = (opcode, funcList) => { if (opcode.name === 'tag') { const func = funcList.find(func => { |