Update core/state/state_object.go

This commit is contained in:
Guillaume Ballet 2026-03-17 11:40:20 +01:00 committed by GitHub
parent 567b0eb5ac
commit 287ced09f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -478,7 +478,7 @@ func (s *stateObject) commit() (*accountUpdate, *trienode.NodeSet, error) {
// The main account trie commit in stateDB.commit() already calls
// CollectNodes on this trie, so calling Commit here again would
// redundantly traverse and serialize the entire tree per dirty account.
if s.db.db.TrieDB().IsVerkle() {
if s.db.GetTrie().IsVerkle() {
s.origin = s.data.Copy()
return op, nil, nil
}