Skip to content

Commit 95f23e1

Browse files
committed
refactor: increase fuzzing space
1 parent 6d7c7ac commit 95f23e1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

contracts/test/proofs/DeltaProof.t.sol

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ contract DeltaProofTest is Test {
303303
DeltaFuzzing.verify({proof: proof, instance: deltaAcc, verifyingKey: verifyingKey});
304304
}
305305

306-
function testFuzz_add_reverts_when_adding_a_non_curve_from_the_right(uint8 k, Delta.Point memory rhs) public {
306+
function testFuzz_add_reverts_when_adding_a_non_curve_from_the_right(uint32 k, Delta.Point memory rhs) public {
307307
// Ensure that `rhs` is not on the curve.
308308
vm.assume(!EllipticCurve.isOnCurve({_x: rhs.x, _y: rhs.y, _aa: Delta._AA, _bb: Delta._BB, _pp: Delta._PP}));
309309

@@ -319,7 +319,7 @@ contract DeltaProofTest is Test {
319319
lhs.add(rhs);
320320
}
321321

322-
function testFuzz_add_reverts_when_adding_zero_from_the_right(uint8 k) public {
322+
function testFuzz_add_reverts_when_adding_zero_from_the_right(uint32 k) public {
323323
// Generate a random point on the curve.
324324
Delta.Point memory lhs = _mul({p: Delta.Point({x: Delta._GX, y: Delta._GY}), k: k});
325325
assertTrue(
@@ -334,7 +334,7 @@ contract DeltaProofTest is Test {
334334
lhs.add(zero);
335335
}
336336

337-
function testFuzz_add_adding_zero_from_the_left_produces_a_curve_point(uint8 k) public pure {
337+
function testFuzz_add_adding_zero_from_the_left_produces_a_curve_point(uint32 k) public pure {
338338
Delta.Point memory zero = Delta.zero();
339339

340340
// Generate a random point on the curve.
@@ -352,7 +352,7 @@ contract DeltaProofTest is Test {
352352
);
353353
}
354354

355-
function testFuzz_add_adding_zero_from_the_left_is_the_identity_operation(uint8 k) public pure {
355+
function testFuzz_add_adding_zero_from_the_left_is_the_identity_operation(uint32 k) public pure {
356356
Delta.Point memory zero = Delta.zero();
357357

358358
// Generate a random point on the curve.
@@ -368,7 +368,7 @@ contract DeltaProofTest is Test {
368368
assertEq(sum.y, rhs.y);
369369
}
370370

371-
function testFuzz_add_adding_two_curve_points_produces_a_curve_point(uint8 k1, uint8 k2) public pure {
371+
function testFuzz_add_adding_two_curve_points_produces_a_curve_point(uint32 k1, uint32 k2) public pure {
372372
// Generate two random points on the curve.
373373
Delta.Point memory lhs = _mul({p: Delta.Point({x: Delta._GX, y: Delta._GY}), k: k1});
374374
assertTrue(

0 commit comments

Comments
 (0)