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

feat: forge decode-error #7775

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

nhtyy
Copy link
Contributor

@nhtyy nhtyy commented Apr 24, 2024

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

@tynes
Copy link
Contributor

tynes commented Apr 29, 2024

This seems like it would be better as a cast command

Copy link
Member

@onbjerg onbjerg left a 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)

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

Successfully merging this pull request may close these issues.

None yet

3 participants