Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename permit arguments to match the spec #2445

Merged
merged 1 commit into from
Dec 23, 2020
Merged

Rename permit arguments to match the spec #2445

merged 1 commit into from
Dec 23, 2020

Conversation

ZumZoom
Copy link
Contributor

@ZumZoom ZumZoom commented Dec 23, 2020

EIP-2612 has the following interface for permit:
function permit(address owner, address spender, uint value, uint deadline, uint8 v, bytes32 r, bytes32 s)

Note that third argument is called value which is also reflected in _PERMIT_TYPEHASH.

It is probably better to follow the spec and use the same argument names as in EIP and in the typehash.

Copy link
Contributor

@frangio frangio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ZumZoom. We generally don't follow the exact parameter names found in EIPs, but given that this one also shows up in the type hash I think it makes sense.

@frangio frangio merged commit da00d28 into OpenZeppelin:master Dec 23, 2020
chriscrutt added a commit to chriscrutt/openzeppelin-contracts that referenced this pull request Dec 27, 2020
Update TimelockController.sol (OpenZeppelin#2446) & Rename "amount" to "value" in permit (OpenZeppelin#2445)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants