From a6a03443210228a329b34628f2d41f718a04f6e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=96mer=20Faruk=20Irmak?= Date: Mon, 25 Nov 2024 10:28:49 +0300 Subject: [PATCH] fix: use tracer when generating storage proofs (#1091) --- rollup/tracing/tracing.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rollup/tracing/tracing.go b/rollup/tracing/tracing.go index a84604c5244e..ec88af234651 100644 --- a/rollup/tracing/tracing.go +++ b/rollup/tracing/tracing.go @@ -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 }