Skip to content

Commit

Permalink
fix: use tracer when generating storage proofs (#1091)
Browse files Browse the repository at this point in the history
  • Loading branch information
omerfirmak authored Nov 25, 2024
1 parent c8b5dad commit a6a0344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rollup/tracing/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ func (env *TraceEnv) getTxResult(state *state.StateDB, index int, block *types.B
env.sMu.Unlock()

var proof zkproof.ProofList
if err = zkStorageTrie.Prove(key.Bytes(), &proof); err != nil {
if err = env.ZkTrieTracer[addrStr].Prove(key.Bytes(), &proof); err != nil {
log.Error("Storage proof not available", "error", err, "address", addrStr, "key", keyStr)
// but we still mark the proofs map with nil array
}
Expand Down

0 comments on commit a6a0344

Please sign in to comment.