Skip to content

Commit 387e018

Browse files
intx4mmagician
andauthored
updated syntax for iterators in multipath.verify
Co-authored-by: Marcin <[email protected]>
1 parent 7f5ac1d commit 387e018

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/merkle_tree/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ impl<P: Config> MultiPath<P> {
322322
let leaf_index = self.leaf_indexes[i];
323323
let leaf = leaves.next().unwrap();
324324
let leaf_sibling_hash = &self.leaf_siblings_hashes[i];
325-
let auth_path = &auth_paths[i];
325+
let auth_path = auth_paths.next().unwrap();
326326

327327
let claimed_leaf_hash = P::LeafHash::evaluate(&leaf_hash_params, leaf.clone())?;
328328
let (left_child, right_child) =

0 commit comments

Comments
 (0)