trie: fix unhandled error in test #25628 (#1115)

Co-authored-by: Amir Hossein <77993374+Kamandlou@users.noreply.github.com>
This commit is contained in:
Daniel Liu 2025-10-08 12:20:53 +08:00 committed by GitHub
parent 1c7e92b56e
commit 0bd353373e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,7 +69,9 @@ func TestTrieTracer(t *testing.T) {
// Commit the changes and re-create with new root
root, nodes, _ := trie.Commit(false)
db.Update(NewWithNodeSet(nodes))
if err := db.Update(NewWithNodeSet(nodes)); err != nil {
t.Fatal(err)
}
trie, _ = New(common.Hash{}, root, db)
trie.tracer = newTracer()