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

* eth: fixed incorrect storage from prestate_tracer

* eth/tracers: updated assets.go
pull/18268/head
Max Sistemich 6 years ago committed by Péter Szilágyi
parent c1d462ee5d
commit dfa16a3e4e
  1. 26
      eth/tracers/internal/tracers/assets.go
  2. 5
      eth/tracers/internal/tracers/prestate_tracer.js

File diff suppressed because one or more lines are too long

@ -40,10 +40,7 @@
var idx = toHex(key);
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));
}
},

Loading…
Cancel
Save