diff --git a/remix-debug/src/solidity-decoder/localDecoder.js b/remix-debug/src/solidity-decoder/localDecoder.js index ef415e4bb3..b4dab50cec 100644 --- a/remix-debug/src/solidity-decoder/localDecoder.js +++ b/remix-debug/src/solidity-decoder/localDecoder.js @@ -9,8 +9,8 @@ async function solidityLocals (vmtraceIndex, internalTreeCall, stack, memory, st const locals = {} memory = formatMemory(memory) let anonymousIncr = 1 - for (let local in scope.locals) { - const variable = scope.locals[local] + for (var local in scope.locals) { + var variable = scope.locals[local] if (variable.stackDepth < stack.length && variable.sourceLocation.start <= currentSourceLocation.start) { let name = variable.name if (name === '') { diff --git a/remix-debug/src/solidity-decoder/stateDecoder.js b/remix-debug/src/solidity-decoder/stateDecoder.js index dfab44713d..cf7ca38a12 100644 --- a/remix-debug/src/solidity-decoder/stateDecoder.js +++ b/remix-debug/src/solidity-decoder/stateDecoder.js @@ -11,7 +11,7 @@ const decodeInfo = require('./decodeInfo') async function decodeState (stateVars, storageResolver) { const ret = {} for (var k in stateVars) { - const stateVar = stateVars[k] + var stateVar = stateVars[k] try { const decoded = await stateVar.type.decodeFromStorage(stateVar.storagelocation, storageResolver) decoded.constant = stateVar.constant