Skip to content

Commit

Permalink
select_from_idx wasn't calling the right function (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmagician authored Aug 9, 2023
1 parent 402dac4 commit 1047146
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions halo2-base/src/gates/tests/flex_gate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,7 @@ pub fn test_select_from_idx<F: ScalarField>(input: (Vec<QuantumCell<F>>, Quantum
let mut builder = GateThreadBuilder::mock();
let ctx = builder.main(0);
let chip = GateChip::default();
let a = chip.idx_to_indicator(ctx, input.1, input.0.len());
let a = chip.select_by_indicator(ctx, input.0, a);
let a = chip.select_from_idx(ctx, input.0, input.1);
*a.value()
}

Expand Down

0 comments on commit 1047146

Please sign in to comment.