Skip to content

Commit c9d34c7

Browse files
sinsemilla::tests: Use separate constants columns for chips.
To be replaced by the public inputs API.
1 parent 9570a54 commit c9d34c7

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/circuit/gadget/sinsemilla.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -337,12 +337,15 @@ mod tests {
337337
meta.advice_column(),
338338
];
339339

340-
let constants = meta.fixed_column();
340+
// TODO: Replace with public inputs API
341+
let constants_1 = meta.fixed_column();
342+
let constants_2 = meta.fixed_column();
341343
let perm = meta.permutation(
342344
&advices
343345
.iter()
344346
.map(|advice| (*advice).into())
345-
.chain(Some(constants.into()))
347+
.chain(Some(constants_1.into()))
348+
.chain(Some(constants_2.into()))
346349
.collect::<Vec<_>>(),
347350
);
348351

@@ -359,14 +362,14 @@ mod tests {
359362
meta,
360363
advices[..5].try_into().unwrap(),
361364
lookup,
362-
constants,
365+
constants_1,
363366
perm.clone(),
364367
);
365368
let config2 = SinsemillaChip::configure(
366369
meta,
367370
advices[5..].try_into().unwrap(),
368371
lookup,
369-
constants,
372+
constants_2,
370373
perm,
371374
);
372375
(ecc_config, config1, config2)

0 commit comments

Comments
 (0)