mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 07:37:20 +00:00
trie: correct error messages for UpdateStorage operations (#32746)
Fix incorrect error messages in TestVerkleTreeReadWrite and TestVerkleRollBack functions.
This commit is contained in:
parent
16b735fddd
commit
8e87b7539b
1 changed files with 2 additions and 2 deletions
|
|
@ -66,7 +66,7 @@ func TestVerkleTreeReadWrite(t *testing.T) {
|
|||
}
|
||||
for key, val := range storages[addr] {
|
||||
if err := tr.UpdateStorage(addr, key.Bytes(), val); err != nil {
|
||||
t.Fatalf("Failed to update account, %v", err)
|
||||
t.Fatalf("Failed to update storage, %v", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -107,7 +107,7 @@ func TestVerkleRollBack(t *testing.T) {
|
|||
}
|
||||
for key, val := range storages[addr] {
|
||||
if err := tr.UpdateStorage(addr, key.Bytes(), val); err != nil {
|
||||
t.Fatalf("Failed to update account, %v", err)
|
||||
t.Fatalf("Failed to update storage, %v", err)
|
||||
}
|
||||
}
|
||||
hash := crypto.Keccak256Hash(code)
|
||||
|
|
|
|||
Loading…
Reference in a new issue