-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
feat: cast decode-error #7775
base: master
Are you sure you want to change the base?
feat: cast decode-error #7775
Conversation
This seems like it would be better as a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move this to cast if there isn't already a command that does this (e.g. cast abi-decode)
Hi @nhtyy thanks for your PR! I can see how this feature could be useful. Would you be interested in porting your changes to |
Hey @zerosnacks. Apologies for the delay but will give this a shot in the next week or two |
Im going to work on this during this upcoming week, just wanted your opinion because my thinking is either if were in a foundry project we search there, or if not we search the do you think either of these approaches is ok? |
Motivation
When debugging eth integrations across platforms sometimes the only thing you can work with is the revert data, this can turn into searching thru forge inspect or manually checking if its an error that can be decoded as a string
Solution
Introduce
forge decode-error
, which searches the project (if any), checks against revert/panic types and prints any results