OpenZeppelin / OpenZeppelin/openzeppelin-contracts

Incorrect "deadline" field description in IERC20Permit

Open
#4,892 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Solidity
Stars
27.2k
Forks
12.4k
Avg merge
2d 19h
Merged PRs (30d)
33

Description

This line states that deadline must be in the future
https://github.com/OpenZeppelin/openzeppelin-contracts/blob/8b12f83a702210cdeff862c837ffb338811c31a4/contracts/token/ERC20/extensions/IERC20Permit.sol#L55

However, in fact, the current timestamp can also be used.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Open contracts/token/ERC20/extensions/IERC20Permit.sol at line 55 and review the deadline description against the issue's observation about the current timestamp. Done means the text accurately describes the accepted deadline values; no test or other entry point is mentioned in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
solidity
Domain
blockchain, documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.