core/state: small fix in hooked statedb

This commit is contained in:
Martin Holst Swende 2024-11-05 18:28:22 +01:00
parent 229ce6411a
commit 682dcc5e0e
No known key found for this signature in database
GPG key ID: 683B438C05A5DDF0

View file

@ -150,7 +150,7 @@ func (s *hookedStateDB) Snapshot() int {
} }
func (s *hookedStateDB) AddPreimage(hash common.Hash, bytes []byte) { func (s *hookedStateDB) AddPreimage(hash common.Hash, bytes []byte) {
s.inner.Snapshot() s.inner.AddPreimage(hash, bytes)
} }
func (s *hookedStateDB) Witness() *stateless.Witness { func (s *hookedStateDB) Witness() *stateless.Witness {