-
Notifications
You must be signed in to change notification settings - Fork 11.8k
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
Functions in SafeMath contract overloaded to accept custom error messages #1828
Functions in SafeMath contract overloaded to accept custom error messages #1828
Conversation
…om error messages.
Great work @elch-yan, thanks! Do you think you could also tackle the following?
Regarding scope, I'm not sure how useful the overloads for |
Thank you @nventuro. Sure I'll update |
Ohh, interesting! There are some examples of this in |
…RC777 for subtraction related exceptions.
3eec22d
to
ca40fe5
Compare
…h-custom-error-messages
@nventuro I've made an entry in CHANGELOG, did some modifications in token contracts and related tests, regarding custom errors. |
I think we should only add those that we currently need, which seem to be |
All done! |
Thanks @elch-yan! One last thing: we would like to change the new error messages slightly to make them more aligned with the rest of the library. Could you apply the following changes?
Those which say "transfer" also apply to "burn". |
…h-custom-error-messages
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.
Awesome @elch-yan! Thanks!
…h-custom-error-messages
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.
Great work @elch-yan, thanks a lot!
Fixes #1827
Overloaded counterparts of the existing functions created, and original functions calls redirected to them.