Commit 7e0235c7 authored by aniket-engg's avatar aniket-engg Committed by Aniket

final fixes

parent 6dcc205b
...@@ -9,7 +9,7 @@ async function solidityLocals (vmtraceIndex, internalTreeCall, stack, memory, st ...@@ -9,7 +9,7 @@ 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 (var local in scope.locals) { for (let local in scope.locals) {
var 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
......
...@@ -10,8 +10,7 @@ class Struct extends RefType { ...@@ -10,8 +10,7 @@ class Struct extends RefType {
async decodeFromStorage (location, storageResolver) { async decodeFromStorage (location, storageResolver) {
const ret = {} const ret = {}
for (var k in this.members) { for (var item of this.members) {
const item = this.members[k]
const globalLocation = { const globalLocation = {
offset: location.offset + item.storagelocation.offset, offset: location.offset + item.storagelocation.offset,
slot: util.add(location.slot, item.storagelocation.slot) slot: util.add(location.slot, item.storagelocation.slot)
......
...@@ -17,7 +17,7 @@ async function decodeMappingsKeys (web3, storage, corrections, callback) { ...@@ -17,7 +17,7 @@ async function decodeMappingsKeys (web3, storage, corrections, callback) {
const ret = {} const ret = {}
if (!corrections.length) corrections.push({offset: 0, slot: 0}) if (!corrections.length) corrections.push({offset: 0, slot: 0})
for (let hashedLoc in storage) { for (let hashedLoc in storage) {
let preimage var preimage
try { try {
const key = storage[hashedLoc].key const key = storage[hashedLoc].key
for (let k in corrections) { for (let k in corrections) {
......
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