Skip to content

Commit

Permalink
updated syntax for iterators in multipath.verify
Browse files Browse the repository at this point in the history
Co-authored-by: Marcin <[email protected]>
  • Loading branch information
intx4 and mmagician authored Jan 18, 2024
1 parent 7f5ac1d commit 387e018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/merkle_tree/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ impl<P: Config> MultiPath<P> {
let leaf_index = self.leaf_indexes[i];
let leaf = leaves.next().unwrap();
let leaf_sibling_hash = &self.leaf_siblings_hashes[i];
let auth_path = &auth_paths[i];
let auth_path = auth_paths.next().unwrap();

Check failure on line 325 in src/merkle_tree/mod.rs

View workflow job for this annotation

GitHub Actions / Test (nightly)

no method named `next` found for struct `Vec<Vec<<P as Config>::InnerDigest>>` in the current scope

Check failure on line 325 in src/merkle_tree/mod.rs

View workflow job for this annotation

GitHub Actions / Test (nightly)

no method named `next` found for struct `std::vec::Vec<std::vec::Vec<<P as merkle_tree::Config>::InnerDigest>>` in the current scope

Check failure on line 325 in src/merkle_tree/mod.rs

View workflow job for this annotation

GitHub Actions / Test (nightly)

no method named `next` found for struct `Vec<Vec<<P as Config>::InnerDigest>>` in the current scope

Check failure on line 325 in src/merkle_tree/mod.rs

View workflow job for this annotation

GitHub Actions / Test (nightly)

no method named `next` found for struct `std::vec::Vec<std::vec::Vec<<P as merkle_tree::Config>::InnerDigest>>` in the current scope

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

0 comments on commit 387e018

Please sign in to comment.