Skip to content

Commit

Permalink
eth/tracers: fixed incorrect storage from prestate_tracer (#18253)
Browse files Browse the repository at this point in the history
* eth: fixed incorrect storage from prestate_tracer

* eth/tracers: updated assets.go
  • Loading branch information
mafrasi2 authored and karalabe committed Dec 10, 2018
1 parent c1d462e commit dfa16a3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
26 changes: 13 additions & 13 deletions eth/tracers/internal/tracers/assets.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions eth/tracers/internal/tracers/prestate_tracer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
},

Expand Down

0 comments on commit dfa16a3

Please sign in to comment.