From 8973c8e37ce60c5aa9d490c4fcc36d4243061ec9 Mon Sep 17 00:00:00 2001 From: Ho Vei Date: Wed, 12 Apr 2023 10:29:49 +0800 Subject: [PATCH] fix an issue on marking deletion --- eth/tracers/api_blocktrace.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eth/tracers/api_blocktrace.go b/eth/tracers/api_blocktrace.go index 2ea45694961d..47bf7ea971c4 100644 --- a/eth/tracers/api_blocktrace.go +++ b/eth/tracers/api_blocktrace.go @@ -367,6 +367,9 @@ func (api *API) getTxResult(env *traceEnv, state *state.StateDB, index int, bloc env.sMu.Lock() m[keyStr] = wrappedProof if zktrieTracer.Available() { + if isDelete { + zktrieTracer.MarkDeletion(key) + } env.zkTrieTracer[addrStr].Merge(zktrieTracer) } env.sMu.Unlock()