-
Notifications
You must be signed in to change notification settings - Fork 11.9k
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
Remove outdated comment in ERC-20 #4968
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a side note, I was reviewing to make sure we're not missing something again in the docs, and turns out we're still warning users about approve
frontrunning when we already deprecated the non-standard increaseAllowance
and decreaseAllowance
functions.
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
I wonder if we should remove the warning. We agree is a theoretical issue but doesn't hurt anyone 🤔
The xref doesn't look good in the docs. Taking some time to test it in local |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Merging if CI pass
Thank you! |
Testing @gitpoap-bot @alexfertel |
Congrats, @alexfertel ! You've earned a GitPOAP for your contribution! GitPOAP: 2024 OpenZeppelin Contracts Contributor: Head to gitpoap.io & connect your GitHub account to mint! Learn more about GitPOAPs here. |
Missed this other outdated comment in #4964