Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rkrasiuk committed Sep 27, 2024
1 parent 2104711 commit 3dd1185
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/trie/db/tests/witness.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#![allow(missing_docs)]

use alloy_primitives::{
keccak256,
map::{HashMap, HashSet},
Expand Down Expand Up @@ -48,7 +50,7 @@ fn includes_empty_node_preimage() {
.unwrap();
assert!(witness.contains_key(&state_root));
for node in multiproof.account_subtree.values() {
assert_eq!(witness.get(&keccak256(&node)), Some(node));
assert_eq!(witness.get(&keccak256(node)), Some(node));
}
// witness includes empty state trie root node
assert_eq!(witness.get(&EMPTY_ROOT_HASH), Some(&Bytes::from([EMPTY_STRING_CODE])));
Expand Down

0 comments on commit 3dd1185

Please sign in to comment.