Skip to content

Commit

Permalink
✅ Limit private keys in tests to uint248 (transmissions11#131)
Browse files Browse the repository at this point in the history
Co-authored-by: t11s <[email protected]>
  • Loading branch information
gakonst and transmissions11 authored Feb 16, 2022
1 parent 83f4a68 commit 8c0e278
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .gas-snapshot
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ testSafeTransferFromSelf() (gas: 59828)
testFailMintToWrongReturnDataERC155Recipient() (gas: 263102)
testInfiniteApproveTransferFrom() (gas: 387818)
testApprove() (gas: 26558)
testMetaData() (gas: 6922)
testTransferFrom() (gas: 388156)
testMetaData() (gas: 6988)
testTransferFrom() (gas: 388134)
testFailTransferFromInsufficientBalance() (gas: 359467)
testFailPermitPastDeadline() (gas: 1467)
testFailPermitReplay() (gas: 59219)
Expand Down
3 changes: 2 additions & 1 deletion src/test/ERC20.t.sol
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,12 @@ contract ERC20Test is DSTestPlus {
}

function testPermit(
uint256 privateKey,
uint248 privKey,
address to,
uint256 amount,
uint256 deadline
) public {
uint256 privateKey = privKey;
if (deadline < block.timestamp) deadline = block.timestamp;
if (privateKey == 0) privateKey = 1;

Expand Down

0 comments on commit 8c0e278

Please sign in to comment.