arnaucube
arnaucube/miden-cryptoPublic Self-hosted repository
Merge pull request #102 from 0xPolygonMiden/hacka-merkle-tree-assert-message

chore: clarified assert message
Augusto Hack hack.augusto@gmail.com
Wed, 22 Mar 2023 17:54:54 +0100
commit

c96047af9d8356f3f8b14b633a5eb0fb7998be3c

parent

482dab94c535c9b7558b74cb4c6ee7990b1ba3a9

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M src/merkle/merkle_tree.rs → src/merkle/merkle_tree.rs

@@ -108,7 +108,10 @@ path.push(self.nodes[sibling]);

index.move_up(); } - debug_assert!(index.is_root(), "the path must include the root"); + debug_assert!( + index.is_root(), + "the path walk must go all the way to the root" + ); Ok(path.into()) }