-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Add EIP-6093: Custom errors for commonly-used tokens #6093
Add EIP-6093: Custom errors for commonly-used tokens #6093
Conversation
All tests passed; auto-merging...(pass) eip-6093.md
|
…/OpenZeppelin/EIPs into eip/custom-errors-for-erc-tokens
Co-authored-by: Pandapip1 <45835846+Pandapip1@users.noreply.github.com>
Co-authored-by: Pandapip1 <45835846+Pandapip1@users.noreply.github.com>
Co-authored-by: Pandapip1 <45835846+Pandapip1@users.noreply.github.com>
Co-authored-by: Pandapip1 <45835846+Pandapip1@users.noreply.github.com>
Co-authored-by: Pandapip1 <45835846+Pandapip1@users.noreply.github.com>
Co-authored-by: Pandapip1 <45835846+Pandapip1@users.noreply.github.com>
Co-authored-by: Pandapip1 <45835846+Pandapip1@users.noreply.github.com>
Co-authored-by: Pandapip1 <45835846+Pandapip1@users.noreply.github.com>
Co-authored-by: Pandapip1 <45835846+Pandapip1@users.noreply.github.com>
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 @Pandapip1, I just updated.
I think we're fine with the common-token
thing so far.
Requested your review again 🙂
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.
Otherwise this is looking good IMO
--- | ||
eip: 6093 | ||
title: Custom errors for commonly-used tokens | ||
description: Lists custom errors for common token implementations |
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.
I think we can expand the description a bit. Maybe:
description: Lists custom errors for common token implementations | |
description: Structured custom errors for common tokens (EIP-20, EIP-721, and EIP-1155) |
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.
Thanks for the suggestion. I'm slightly more biased toward your proposal, but there's a competing comment I've already accepted.
I'll leave it open in case someone else wants to comment on this.
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.
I think this is fine for a draft. I would like to see the title changed (it doesn't provide errors for all ERC token standards, just the three most commonly-used).
Description
Since the introduction custom errors in Solidity in v0.8.4, there's now a more expressive and gas-efficient way of reverting changes during a transaction.
Given this new addition, we're proposing a list of standard errors to be used for the standard tokens (ERC20, ERC721, and ERC1155), so the clients and implementers can expect an insightful and structured way from a transaction error.
Discussions at https://ethereum-magicians.org/t/eip-6093-custom-errors-for-erc-tokens/12043