-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Add Solidity Custom Error support to Interface #1498
Comments
Other Useful Links: I have this working locally, but have a few other changes I want to roll into this minor bump. |
Please note that Solidity does not implement EIP-838. That proposed RLP encoding and some prefix, and I can't remember what else was discussed there. Please do not include EIP-838 in the documentation, as that would be misleading users. The encoding specification is here: https://docs.soliditylang.org/en/v0.8.4/abi-spec.html#errors |
@axic The only mention of RLP in the above EIP-838 spec seems to be a typo, which should have read
Function outputs are ABI encoded, not RLP encoded... |
It also says the following:
And that EIP was initially for the reason string, which has been supported in Solidity for quite a bit ( I see now that @chriseth commented there, which may be the reason for this confusion 😅 Anyway please just link to the Solidity documentation (and follow the description there), as that discussion never materialised as an EIP. |
Sounds good to me. And I'll stop using the phrase EIP-838 starting... now. :) Also note, that |
Nice! And thanks for taking the above into consideration, my aim is to avoid potential confusion as that could mean more work for both of us 😅 I wish everything was properly standardised/documented under EIPs, but the process is tedious and was blocked on certain issues regarding the ABI so far. |
@axic, @chriseth implied that Solidity had implemented EIP838 in ethereum/EIPs#838 (comment). Would you mind posting a comment over there explaining that it's not the case? |
Solidity has announced and released EIP-838 support for user defined errors in Solidity, so I will be adding support to human-readable ABI, the ABI fragment parser and the Interface in the next minor bump.
The text was updated successfully, but these errors were encountered: