-
Notifications
You must be signed in to change notification settings - Fork 354
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 non-standard increase_allowance and decrease_allowance from ERC20 #881
Remove non-standard increase_allowance and decrease_allowance from ERC20 #881
Conversation
@martriay oh yes I still need to modify the doc , I forgot to do it. Same for the other PR. |
@martriay now it should be good :) |
Thanks! Please complete all items in the PR checklist. |
@martriay am i suppose to ''try the feature'' on a public network? If yes what should i do exactly? |
Since this is a feature removal PR, we need to deploy the ERC20 preset and verify:
Note that this PR modifies a preset, so we need to update the class hashes as indicated in the CONTRIBUTING guide. |
Thank very much for all explanations 🙏 |
Class hash: 0x7c9b5a246fe83b0cd81de65daddb94b3803f94950db99bf2431bbfecf284642 ERC20 preset deployed on Goerli at: 0x1ceea6ba0ad2015c13cdca03185f615127523d8ece2293975354163479db3e9 If you try to run, for example :
You will get the following error:
This means `increase_allowance' entrypoint doesn't exist anymore. Same applies for
|
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.
Hey, thanks for opening this PR! I left a few comments and suggestions. Would you mind also removing the safe allowance impls from index.adoc here?
@andrew-fleming PR updated, now it should be good! |
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.
Looking good to me!
@martriay docs updated! |
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!
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!
@TAdev0 please fix the merge conflicts and this is good to go. |
@martriay now it should be good! |
Thanks! |
Fixes #728
This PR removes
increase_allowance
anddecrease_allowance
functions in ERC20 contracts (token and mocks)PR Checklist