Skip to content

Commit

Permalink
fix: Deadline natspec (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
deluca-mike authored Oct 30, 2024
1 parent 4c88b3f commit f337029
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/interfaces/IERC20Extended.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ interface IERC20Extended is IERC20, IERC3009 {
* @param owner The address of the account who's token balance is being approved to be spent by `spender`.
* @param spender The address of an account allowed to spend on behalf of `owner`.
* @param value The amount of the allowance being approved.
* @param deadline The last block number where the signature is still valid.
* @param deadline The last timestamp where the signature is still valid.
* @param v An ECDSA secp256k1 signature parameter (EIP-2612 via EIP-712).
* @param r An ECDSA secp256k1 signature parameter (EIP-2612 via EIP-712).
* @param s An ECDSA secp256k1 signature parameter (EIP-2612 via EIP-712).
Expand All @@ -61,7 +61,7 @@ interface IERC20Extended is IERC20, IERC3009 {
* @param owner The address of the account who's token balance is being approved to be spent by `spender`.
* @param spender The address of an account allowed to spend on behalf of `owner`.
* @param value The amount of the allowance being approved.
* @param deadline The last block number where the signature is still valid.
* @param deadline The last timestamp where the signature is still valid.
* @param signature An arbitrary signature (EIP-712).
*/
function permit(address owner, address spender, uint256 value, uint256 deadline, bytes memory signature) external;
Expand Down
2 changes: 1 addition & 1 deletion src/interfaces/IERC712.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ interface IERC712 {

/**
* @notice Revert message when a signature is being used beyond its deadline (i.e. expiry).
* @param deadline The deadline of the signature.
* @param deadline The last timestamp where the signature is still valid.
* @param timestamp The current timestamp.
*/
error SignatureExpired(uint256 deadline, uint256 timestamp);
Expand Down

0 comments on commit f337029

Please sign in to comment.