Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aditiharini committed Dec 10, 2024
1 parent 471b150 commit 834d309
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/storage/trie/merkle_trie_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,13 @@ mod tests {
let event_key = TrieKey::for_onchain_event(&event);
assert_eq!(event_key[0..4], TrieKey::for_fid(1234));
assert_eq!(event_key[4], event.r#type as u8);
assert_eq!(event_key[5..], event.transaction_hash);
assert_eq!(
event_key[5..(5 + event.transaction_hash.len())],
event.transaction_hash
);
assert_eq!(
event_key[(5 + event.transaction_hash.len())..],
event.log_index.to_be_bytes()
);
}
}

0 comments on commit 834d309

Please sign in to comment.