Skip to content

Commit

Permalink
fix: missing call to bool_or
Browse files Browse the repository at this point in the history
  • Loading branch information
dkales committed Jun 6, 2024
1 parent 67cd798 commit 384ba52
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion circom-mpc-vm/src/mpc_vm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,11 @@ impl<P: Pairing, C: CircomWitnessExtensionProtocol<P::ScalarField>> Component<P,
let lhs = self.pop_field();
self.push_field(protocol.vm_shift_l(lhs, rhs)?);
}
op_codes::MpcOpCode::BoolOr => todo!(),
op_codes::MpcOpCode::BoolOr => {
let rhs = self.pop_field();
let lhs = self.pop_field();
self.push_field(protocol.vm_bool_or(lhs, rhs)?);
}
op_codes::MpcOpCode::BoolAnd => {
let rhs = self.pop_field();
let lhs = self.pop_field();
Expand Down

0 comments on commit 384ba52

Please sign in to comment.