-
Notifications
You must be signed in to change notification settings - Fork 89
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
Use custom error types #130
Comments
Hi, @ItsNickBarry, |
Okay, that would be appreciated. There are two open-ended questions that will need to be answered:
|
Some of the cases below providing arguments will be better:
|
I agree. Let's not include contract name in the error names. Go ahead and make the changes on your branch, and PR when ready. |
Addressing some issues here.
|
Right, I forgot that library ABIs would be generated separately. I suppose that means that the errors defined in libraries only appear in the library ABIs, and not in the contract ABIs? I've had the same issue with events in the past. If so, that might make this change untenable until tools are available to easily include library ABIs in the relevant contracts. |
I don't know if it is OK to generate |
Maybe I misunderstood. I did a test, and it seems like errors defined in libraries are properly included in the ABIs of contracts that import them. In that case, I don't see any issues.
It's okay if extra ABIs are generated. |
Replace error strings with custom error types: https://blog.soliditylang.org/2021/04/21/custom-errors/
The text was updated successfully, but these errors were encountered: