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