Skip to content

Commit

Permalink
fix: compilation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
polydez committed Dec 26, 2024
1 parent 533c459 commit 7777e33
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
10 changes: 10 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 1 addition & 4 deletions src/merkle/smt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,7 @@ pub(crate) trait SparseMerkleTree<const DEPTH: u8> {
// Guard against accidentally trying to apply mutations that were computed against a
// different tree, including a stale version of this tree.
if old_root != self.root() {
return Err(MerkleError::ConflictingRoots {
expected_root: self.root(),
actual_root: old_root,
});
return Err(MerkleError::ConflictingRoots(vec![old_root, self.root()]));
}

for (index, mutation) in node_mutations {
Expand Down

0 comments on commit 7777e33

Please sign in to comment.