Skip to content

Commit

Permalink
fix(traces): deletion proof apply wrong storage value from structLogg…
Browse files Browse the repository at this point in the history
…er (#838)

* fix issue caused by unmatching storage value

* lint

* chore: auto version bump [bot]

---------

Co-authored-by: HAOYUatHZ <HAOYUatHZ@users.noreply.github.com>
Co-authored-by: Péter Garamvölgyi <peter@scroll.io>
  • Loading branch information
3 people authored Jun 20, 2024
1 parent f2efa44 commit 4e3bf2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion params/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
const (
VersionMajor = 5 // Major version component of the current release
VersionMinor = 4 // Minor version component of the current release
VersionPatch = 4 // Patch version component of the current release
VersionPatch = 5 // Patch version component of the current release
VersionMeta = "mainnet" // Version metadata to append to the version string
)

Expand Down
5 changes: 3 additions & 2 deletions rollup/tracing/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,10 +428,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()
Expand Down

0 comments on commit 4e3bf2f

Please sign in to comment.