diff --git a/trie/secure_trie.go b/trie/secure_trie.go index 31bbce3a14..d800ce3bf5 100644 --- a/trie/secure_trie.go +++ b/trie/secure_trie.go @@ -246,7 +246,7 @@ func (t *StateTrie) GetKey(shaKey []byte) []byte { if t.preimages == nil { return nil } - if key, ok := t.getSecKeyCache()[common.BytesToHash(shaKey)]; ok { + if key, ok := t.secKeyCache[common.BytesToHash(shaKey)]; ok { return key } return t.preimages.Preimage(common.BytesToHash(shaKey))