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

Catch custom revert errors from smart contract calls #319

Open
xqft opened this issue Aug 14, 2024 · 0 comments
Open

Catch custom revert errors from smart contract calls #319

xqft opened this issue Aug 14, 2024 · 0 comments

Comments

@xqft
Copy link
Member

xqft commented Aug 14, 2024

Whenever we call a contract with ethers-rs or alloy, if there's any error we just return it directly without catching possible revert errors. So if a contract reverts we end up with an obscure hex number representing the errors signature, instead of a proper error message.

Solve #310 first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant