From b04d6c4f42f2e31606c19ed8d295b3a36596ccdf Mon Sep 17 00:00:00 2001 From: Martin HS Date: Tue, 5 Nov 2024 18:29:37 +0100 Subject: [PATCH] core/state: small fix in hooked statedb (#30732) fixes a very tiny bug --- core/state/statedb_hooked.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/state/statedb_hooked.go b/core/state/statedb_hooked.go index 55b53ded40..3abb0fa65f 100644 --- a/core/state/statedb_hooked.go +++ b/core/state/statedb_hooked.go @@ -150,7 +150,7 @@ func (s *hookedStateDB) Snapshot() int { } func (s *hookedStateDB) AddPreimage(hash common.Hash, bytes []byte) { - s.inner.Snapshot() + s.inner.AddPreimage(hash, bytes) } func (s *hookedStateDB) Witness() *stateless.Witness {