Skip to content

Commit

Permalink
correctly witness variable for MerklePath
Browse files Browse the repository at this point in the history
  • Loading branch information
narodnik committed Oct 30, 2021
1 parent 1c22269 commit a83b2df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/halo2/src/vm2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ impl<'a> ZkCircuit<'a> {
if name != variable {
continue;
}
if *type_id != ZkType::Scalar {
if *type_id != ZkType::MerklePath {
return Err(Error::InvalidParamType);
}
*self.witness_merkle_path.get_mut(name).unwrap() = (Some(leaf_pos), Some(path));
Expand Down

0 comments on commit a83b2df

Please sign in to comment.