Skip to content

Commit 8b4127b

Browse files
holimangballet
authored andcommitted
core/state: small fix in hooked statedb (ethereum#30732)
fixes a very tiny bug
1 parent c182793 commit 8b4127b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/state/statedb_hooked.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ func (s *hookedStateDB) Snapshot() int {
150150
}
151151

152152
func (s *hookedStateDB) AddPreimage(hash common.Hash, bytes []byte) {
153-
s.inner.Snapshot()
153+
s.inner.AddPreimage(hash, bytes)
154154
}
155155

156156
func (s *hookedStateDB) Witness() *stateless.Witness {

0 commit comments

Comments
 (0)