mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-13 02:11:34 +00:00
TestDeleteAccountDoesNotAffectMainStorage was using `if got, _ := tr.GetAccount(addr); got != nil` to assert deletion. If GetAccount ever returns a non-nil error on this path (a future change to GetValuesAtStem, a resolver-error case), `got` is nil and the assertion passes silently — exactly the kind of suppression the broader fix is designed to eliminate. Match the error-checking pattern used four lines earlier in the same test, and rename the now-shadowed `got` for the GetStorage result to `stored`. |
||
|---|---|---|
| .. | ||
| binary_node.go | ||
| binary_node_test.go | ||
| empty.go | ||
| empty_test.go | ||
| hashed_node.go | ||
| hashed_node_test.go | ||
| hasher.go | ||
| internal_node.go | ||
| internal_node_test.go | ||
| iterator.go | ||
| iterator_test.go | ||
| key_encoding.go | ||
| stem_node.go | ||
| stem_node_test.go | ||
| trie.go | ||
| trie_test.go | ||