Skip to content
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

Parse error name when a transaction is reverted in EVM #1598

Open
dinhani-cw opened this issue Aug 5, 2024 · 1 comment
Open

Parse error name when a transaction is reverted in EVM #1598

dinhani-cw opened this issue Aug 5, 2024 · 1 comment
Labels
contracts enhancement New feature or request

Comments

@dinhani-cw
Copy link
Contributor

When a transaction fails in EVM execution, the revert reason is present in the output field.

We can parse the reason using the list of pre-compiled Solidity errors and use the friendly error name in metrics, tracing and error response.

The error message can also be an encoded String, so we will also need to handle this scenario.

@dinhani-cw dinhani-cw changed the title Parse error name when a transaction is reverted in EVM Parse error when a transaction is reverted in EVM Aug 5, 2024
@dinhani-cw dinhani-cw changed the title Parse error when a transaction is reverted in EVM Parse error name when a transaction is reverted in EVM Aug 5, 2024
@marcospb19-cw marcospb19-cw added the bug Something isn't working label Aug 5, 2024
@carneiro-cw carneiro-cw added enhancement New feature or request contracts and removed bug Something isn't working labels Dec 27, 2024
@carneiro-cw
Copy link
Contributor

#1950 and #1936 partially address this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contracts enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants