Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
wborgeaud committed Nov 1, 2023
1 parent 3700488 commit 3a1ac78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/smt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ impl Smt {
fn serialize(smt: &Smt, key: Bits, v: &mut Vec<U256>) -> usize {
if let Some(node) = smt.leaves.get(&key) {
if node.is_empty() && !key.is_empty() {
// `!key.is_empty()` condition is only to ensure that `serialize(Empty)=[0,0,0,4]` and not just `[0,0]`.
// `!key.is_empty()` condition is only to ensure that `serialize(Empty)=[0,0,0,0]` and not just `[0,0]`.
return 0; // `ptr=0` is an empty node.
}
match node {
Expand Down

0 comments on commit 3a1ac78

Please sign in to comment.