eth/tracers: fixed incorrect storage from prestate_tracer (#18253)

* eth: fixed incorrect storage from prestate_tracer

* eth/tracers: updated assets.go
This commit is contained in:
Max Sistemich 2018-12-10 10:17:31 +01:00 committed by Péter Szilágyi
parent c1d462ee5d
commit dfa16a3e4e
2 changed files with 14 additions and 17 deletions

File diff suppressed because one or more lines are too long

View File

@ -40,11 +40,8 @@
var idx = toHex(key); var idx = toHex(key);
if (this.prestate[acc].storage[idx] === undefined) { if (this.prestate[acc].storage[idx] === undefined) {
var val = toHex(db.getState(addr, key));
if (val != "0x0000000000000000000000000000000000000000000000000000000000000000") {
this.prestate[acc].storage[idx] = toHex(db.getState(addr, key)); this.prestate[acc].storage[idx] = toHex(db.getState(addr, key));
} }
}
}, },
// result is invoked when all the opcodes have been iterated over and returns // result is invoked when all the opcodes have been iterated over and returns