-
Notifications
You must be signed in to change notification settings - Fork 12
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
Improve API errors for tx that will revert (instead of UNPREDICTABLE_GAS_LIMIT) #186
Labels
Comments
In the example below the information is buried here:
complete log is:
|
This is still relevant! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Context
If a transaction is going to revert for some reason one will typically get errors of the following kind:
Buried deep inside the error, the actual revert message is given, e.g. something like:
"execution reverted: MultiOwner/debitOnMgv/insufficient\"
Proposed solution
It would be great if the API could intercept these errors, determine the revert reason, and propagate a more telling error. This will be use useful both for developer but probably also for the UI.
A solution could be something along the following lines:
The text was updated successfully, but these errors were encountered: