Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
ezynda3 committed Nov 26, 2024
1 parent c803f2d commit 4bdfa05
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/solidity/Periphery/Permit2Proxy.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -434,17 +434,15 @@ contract Permit2ProxyTest is TestBase {
bytes memory diamondCalldata;
ISignatureTransfer.PermitTransferFrom memory permitTransferFrom;
bytes32 msgHash;
bytes memory signature;
(
diamondCalldata,
permitTransferFrom,
msgHash,

signature
) = _getPermit2WitnessTransferFromParamsSignedByPERMIT2_USER();

// Sign with a random key
bytes memory signature = _signMsgHash(msgHash, 987654321);

permitTransferFrom.permitted.amount = 500 ether;
permitTransferFrom.permitted.amount += 1;

// Execute
vm.expectRevert(InvalidSigner.selector);
Expand Down

0 comments on commit 4bdfa05

Please sign in to comment.