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

how to get the revert error message #48

Closed
aster2709 opened this issue Dec 24, 2021 · 2 comments
Closed

how to get the revert error message #48

aster2709 opened this issue Dec 24, 2021 · 2 comments

Comments

@aster2709
Copy link

I have tried using serializeError(error) it doesn't contain the original revert error in the output.

here's is an example of what I'm trying to get my hands on
image

passing the error as is to serializeError gives me this output which doesn't contain the revert message at all.
image

is there another way or am I doing it wrong sirs! thanks

@thebuidler
Copy link

Also curious about this. Wondering more generally who's responsible for throwing the error? Is this the RPC client validating against the contract or?

@rekmarks
Copy link
Member

This is now being tracked in #51, and will be fixed soon. Thank you @aster2709 for creating this issue.

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

3 participants