mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 18:02:24 +00:00
eth/tracers: including the cleared storage slot in post state
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
parent
e3d61e6db0
commit
1f21652e28
1 changed files with 2 additions and 4 deletions
|
|
@ -238,16 +238,14 @@ func (t *prestateTracer) processDiffState() {
|
|||
|
||||
newVal := t.env.StateDB.GetState(addr, key)
|
||||
if val == newVal {
|
||||
// Omit unchanged slots
|
||||
// omit unchanged slots
|
||||
delete(t.pre[addr].Storage, key)
|
||||
} else {
|
||||
modified = true
|
||||
if newVal != (common.Hash{}) {
|
||||
postAccount.Storage[key] = newVal
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if modified {
|
||||
t.post[addr] = postAccount
|
||||
|
|
|
|||
Loading…
Reference in a new issue