Skip to content

Commit

Permalink
clenaup jakub
Browse files Browse the repository at this point in the history
  • Loading branch information
0xForerunner committed Apr 17, 2024
1 parent 4b0acc6 commit 2b08124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cascading_merkle_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ where
// If the index is out of bounds, we need to resize the storage
// we must always have 2^n leaves for any n
if new_last_leaf_index >= storage_len {
let next_power_of_two = (new_last_leaf_index + 1).next_power_of_two();
let next_power_of_two = new_last_leaf_index.next_power_of_two();
let diff = next_power_of_two - storage_len;

self.storage
Expand Down

0 comments on commit 2b08124

Please sign in to comment.