Skip to content

Commit 59a155d

Browse files
committed
fix: replace constant value
1 parent d03a2fd commit 59a155d

File tree

1 file changed

+1
-1
lines changed
  • g16ckt/src/gadgets/bn254

1 file changed

+1
-1
lines changed

g16ckt/src/gadgets/bn254/fq2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl crate::circuit::FromWires for Fq2 {
5050
fn from_wires(wires: &[WireId]) -> Option<Self> {
5151
if wires.len() == Fq2::N_BITS {
5252
// 2 * 254 bits
53-
let (fq1_wires, fq2_wires) = wires.split_at(254);
53+
let (fq1_wires, fq2_wires) = wires.split_at(wires.len() / 2);
5454
let fq1 = Fq::from_wires(fq1_wires)?;
5555
let fq2 = Fq::from_wires(fq2_wires)?;
5656
Some(Self([fq1, fq2]))

0 commit comments

Comments
 (0)