Skip to content

Commit

Permalink
Merge pull request #462 from morpho-org/fix/remove-unused-deadline
Browse files Browse the repository at this point in the history
remove unused deadline argument
  • Loading branch information
MathisGD authored Oct 31, 2024
2 parents a18dd8b + 944a4a6 commit 726c7c1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/forge/fork/Permit2BundlerForkTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ error InvalidNonce();
contract Permit2BundlerForkTest is ForkTest {
using SafeTransferLib for ERC20;

function testApprove2(uint256 seed, uint256 privateKey, uint256 deadline, uint256 amount) public {
function testApprove2(uint256 seed, uint256 privateKey, uint256 amount) public {
privateKey = bound(privateKey, 1, type(uint160).max);
deadline = bound(deadline, block.timestamp, type(uint48).max);
amount = bound(amount, MIN_AMOUNT, MAX_AMOUNT);

address user = vm.addr(privateKey);
Expand Down Expand Up @@ -41,9 +40,8 @@ contract Permit2BundlerForkTest is ForkTest {
Permit2Bundler(address(bundler)).approve2(permitSingle, signature, false);
}

function testApprove2InvalidNonce(uint256 seed, uint256 privateKey, uint256 deadline, uint256 amount) public {
function testApprove2InvalidNonce(uint256 seed, uint256 privateKey, uint256 amount) public {
privateKey = bound(privateKey, 1, type(uint160).max);
deadline = bound(deadline, block.timestamp, type(uint48).max);
amount = bound(amount, MIN_AMOUNT, MAX_AMOUNT);

address user = vm.addr(privateKey);
Expand Down

0 comments on commit 726c7c1

Please sign in to comment.