trie: fix

This commit is contained in:
Felix Lange 2025-06-19 12:35:02 +02:00
parent aafdcc518a
commit 1791b95016

View file

@ -246,7 +246,7 @@ func (t *StateTrie) GetKey(shaKey []byte) []byte {
if t.preimages == nil { if t.preimages == nil {
return nil return nil
} }
if key, ok := t.getSecKeyCache()[common.BytesToHash(shaKey)]; ok { if key, ok := t.secKeyCache[common.BytesToHash(shaKey)]; ok {
return key return key
} }
return t.preimages.Preimage(common.BytesToHash(shaKey)) return t.preimages.Preimage(common.BytesToHash(shaKey))