initial fixes

pull/5370/head
aniket-engg 5 years ago committed by Aniket
parent 08206a7fb4
commit 1cbd07eb2d
  1. 4
      remix-debug/src/solidity-decoder/localDecoder.js
  2. 2
      remix-debug/src/solidity-decoder/stateDecoder.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 === '') {

@ -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

Loading…
Cancel
Save