Merge pull request #102 from 0xPolygonMiden/hacka-merkle-tree-assert-message

chore: clarified assert message
This commit is contained in:
Augusto Hack 2023-03-22 17:54:54 +01:00 committed by GitHub
commit c96047af9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -108,7 +108,10 @@ impl MerkleTree {
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())
}