Skip to content

Commit

Permalink
missed stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
zlangley committed Nov 6, 2024
1 parent 80419af commit 99a04b8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/recursion/src/halo2/tests/multi_field32.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ fn test_challenger_sample_ext() {
let a = BabyBear::from_canonical_usize(1);
let b = BabyBear::from_canonical_usize(2);
let c = BabyBear::from_canonical_usize(3);
let hash = Hash::from([Bn254Fr::two(); OUTER_DIGEST_SIZE]);
let hash = Hash::from([Bn254Fr::TWO; OUTER_DIGEST_SIZE]);
challenger.observe(hash);
challenger.observe(a);
challenger.observe(b);
Expand All @@ -76,7 +76,7 @@ fn test_challenger_sample_ext() {
let a = builder.eval(a);
let b = builder.eval(b);
let c = builder.eval(c);
let hash = builder.eval(Bn254Fr::two());
let hash = builder.eval(Bn254Fr::TWO);
challenger.observe_commitment(&mut builder, [hash]);
challenger.observe(&mut builder, a);
challenger.observe(&mut builder, b);
Expand Down
4 changes: 2 additions & 2 deletions lib/recursion/src/halo2/tests/outer_poseidon2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ fn test_p2_compress() {
let perm = outer_perm();
let compressor = OuterCompress::new(perm.clone());

let a: [Bn254Fr; 1] = [Bn254Fr::two()];
let b: [Bn254Fr; 1] = [Bn254Fr::two()];
let a: [Bn254Fr; 1] = [Bn254Fr::TWO];
let b: [Bn254Fr; 1] = [Bn254Fr::TWO];
let gt = compressor.compress([a, b]);

let mut builder = Builder::<OuterConfig>::default();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ impl BabyBearExt4Chip {
}
let w = self
.base
.load_constant(ctx, <BabyBear as BinomiallyExtendable<4>>::w());
.load_constant(ctx, <BabyBear as BinomiallyExtendable<4>>::W);
for i in 4..7 {
let tmp = self.base.mul(ctx, coeffs[i], w);
coeffs[i - 4] = self.base.add(ctx, coeffs[i - 4], tmp);
Expand Down

0 comments on commit 99a04b8

Please sign in to comment.