From 55f70cc6e8a5a2e75febd386684268b267b4e04a Mon Sep 17 00:00:00 2001 From: HAOYUatHZ <37070449+HAOYUatHZ@users.noreply.github.com> Date: Thu, 11 Jul 2024 18:58:07 +0800 Subject: [PATCH] fix(tracing): fix error handling in `fillBlockTrace` (#890) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix(tracing): fix error handling in `fillBlockTrace` * chore: auto version bump [bot] * chore: auto version bump [bot] --------- Co-authored-by: HAOYUatHZ --- params/version.go | 2 +- rollup/tracing/tracing.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/params/version.go b/params/version.go index 4c0bff1aad0a..a699a2e702d6 100644 --- a/params/version.go +++ b/params/version.go @@ -24,7 +24,7 @@ import ( const ( VersionMajor = 5 // Major version component of the current release VersionMinor = 5 // Minor version component of the current release - VersionPatch = 8 // Patch version component of the current release + VersionPatch = 9 // Patch version component of the current release VersionMeta = "mainnet" // Version metadata to append to the version string ) diff --git a/rollup/tracing/tracing.go b/rollup/tracing/tracing.go index 4c0009ce3382..4972d2d07764 100644 --- a/rollup/tracing/tracing.go +++ b/rollup/tracing/tracing.go @@ -554,7 +554,7 @@ func (env *TraceEnv) fillBlockTrace(block *types.Block) (*types.BlockTrace, erro if _, existed := env.StorageProofs[addr.String()][slot.String()]; !existed { if trie, err := statedb.GetStorageTrieForProof(addr); err != nil { log.Error("Storage proof for intrinstic address not available", "error", err, "address", addr) - } else if proof, _ := statedb.GetSecureTrieProof(trie, slot); err != nil { + } else if proof, err := statedb.GetSecureTrieProof(trie, slot); err != nil { log.Error("Get storage proof for intrinstic address failed", "error", err, "address", addr, "slot", slot) } else { env.StorageProofs[addr.String()][slot.String()] = types.WrapProof(proof)