mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
fix(traces): deletion proof apply wrong storage value from structLogger (#870)
cherry pick 4e3bf2f
This commit is contained in:
parent
86c37a9075
commit
9c7381669e
1 changed files with 3 additions and 2 deletions
|
|
@ -420,10 +420,11 @@ func (env *TraceEnv) getTxResult(state *state.StateDB, index int, block *types.B
|
|||
zktrieTracer := state.NewProofTracer(trie)
|
||||
env.sMu.Unlock()
|
||||
|
||||
for key, values := range keys {
|
||||
for key := range keys {
|
||||
addrStr := addr.String()
|
||||
keyStr := key.String()
|
||||
isDelete := bytes.Equal(values.Bytes(), common.Hash{}.Bytes())
|
||||
value := state.GetState(addr, key)
|
||||
isDelete := bytes.Equal(value.Bytes(), common.Hash{}.Bytes())
|
||||
|
||||
txm := txStorageTrace.StorageProofs[addrStr]
|
||||
env.sMu.Lock()
|
||||
|
|
|
|||
Loading…
Reference in a new issue