Commit 6dcc205b authored by aniket-engg's avatar aniket-engg Committed by Aniket

initial fixes

parent 6750e044
...@@ -9,8 +9,8 @@ async function solidityLocals (vmtraceIndex, internalTreeCall, stack, memory, st ...@@ -9,8 +9,8 @@ async function solidityLocals (vmtraceIndex, internalTreeCall, stack, memory, st
const locals = {} const locals = {}
memory = formatMemory(memory) memory = formatMemory(memory)
let anonymousIncr = 1 let anonymousIncr = 1
for (let local in scope.locals) { for (var local in scope.locals) {
const variable = scope.locals[local] var variable = scope.locals[local]
if (variable.stackDepth < stack.length && variable.sourceLocation.start <= currentSourceLocation.start) { if (variable.stackDepth < stack.length && variable.sourceLocation.start <= currentSourceLocation.start) {
let name = variable.name let name = variable.name
if (name === '') { if (name === '') {
......
...@@ -11,7 +11,7 @@ const decodeInfo = require('./decodeInfo') ...@@ -11,7 +11,7 @@ const decodeInfo = require('./decodeInfo')
async function decodeState (stateVars, storageResolver) { async function decodeState (stateVars, storageResolver) {
const ret = {} const ret = {}
for (var k in stateVars) { for (var k in stateVars) {
const stateVar = stateVars[k] var stateVar = stateVars[k]
try { try {
const decoded = await stateVar.type.decodeFromStorage(stateVar.storagelocation, storageResolver) const decoded = await stateVar.type.decodeFromStorage(stateVar.storagelocation, storageResolver)
decoded.constant = stateVar.constant decoded.constant = stateVar.constant
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment