mirror of
https://github.com/logos-storage/plonky2.git
synced 2026-01-04 06:43:07 +00:00
PR feedback
This commit is contained in:
parent
dd076e5c73
commit
c3a0b7cc82
@ -345,7 +345,7 @@ mod tests {
|
||||
|
||||
let permutation_inputs = (0..W).map(F::from_canonical_usize).collect::<Vec<_>>();
|
||||
|
||||
let mut witness = PartialWitness::new(126);
|
||||
let mut witness = PartialWitness::new(gate.num_wires());
|
||||
witness.set_wire(
|
||||
Wire {
|
||||
gate: 0,
|
||||
|
||||
@ -204,7 +204,8 @@ impl<F: Field> PartialWitness<F> {
|
||||
|
||||
pub fn full_witness(self, degree: usize, num_wires: usize) -> Witness<F> {
|
||||
let mut wire_values = vec![vec![F::ZERO; degree]; num_wires];
|
||||
for i in 0..self.wire_values.len().min(degree) {
|
||||
assert!(self.wire_values.len() <= degree);
|
||||
for i in 0..self.wire_values.len() {
|
||||
for j in 0..num_wires {
|
||||
wire_values[j][i] = self.wire_values[i][j].unwrap_or(F::ZERO);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user