Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions test/src/concrete/Flow.expression.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ contract FlowExpressionTest is FlowTest, IInterpreterCallerV2 {

SignedContextV1[] memory signedContext = new SignedContextV1[](matrixCallerContext.length);
{
// Ensure the fuzzed key is within the valid range for secp256k1
uint256 aliceKey = (fuzzedKeyAlice % (SECP256K1_ORDER - 1)) + 1;
uint256 aliceKey = boundPrivateKey(fuzzedKeyAlice);
for (uint256 i = 0; i < matrixCallerContext.length; i++) {
signedContext[i] = vm.signContext(aliceKey, aliceKey, matrixCallerContext[i]);
}
Expand Down
10 changes: 4 additions & 6 deletions test/src/concrete/Flow.signedContext.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ contract FlowSignedContextTest is FlowTest {
vm.assume(fuzzedKeyBob != fuzzedKeyAlice);
(IFlowV5 flow, EvaluableV2 memory evaluable) = deployFlow();

// Ensure the fuzzed key is within the valid range for secp256k1
uint256 aliceKey = (fuzzedKeyAlice % (SECP256K1_ORDER - 1)) + 1;
uint256 bobKey = (fuzzedKeyBob % (SECP256K1_ORDER - 1)) + 1;
uint256 aliceKey = boundPrivateKey(fuzzedKeyAlice);
uint256 bobKey = boundPrivateKey(fuzzedKeyBob);

SignedContextV1[] memory signedContexts = new SignedContextV1[](2);

Expand Down Expand Up @@ -56,9 +55,8 @@ contract FlowSignedContextTest is FlowTest {
vm.assume(fuzzedKeyBob != fuzzedKeyAlice);
(IFlowV5 flow, EvaluableV2 memory evaluable) = deployFlow();

// Ensure the fuzzed key is within the valid range for secp256k1
uint256 aliceKey = (fuzzedKeyAlice % (SECP256K1_ORDER - 1)) + 1;
uint256 bobKey = (fuzzedKeyBob % (SECP256K1_ORDER - 1)) + 1;
uint256 aliceKey = boundPrivateKey(fuzzedKeyAlice);
uint256 bobKey = boundPrivateKey(fuzzedKeyBob);

SignedContextV1[] memory signedContext = new SignedContextV1[](1);
signedContext[0] = vm.signContext(aliceKey, aliceKey, context0);
Expand Down
Loading