-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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(cheatcodes): tryFfi
cheatcode
#4908
Conversation
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.
sorry forgot to review this.
I like this, but it needs a rebase because we moved cheatcodes
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.
looks like this just needs a rebase?
there's a failing test, otherwise lgtm |
yeah need to debug why this is failing—the cheatcode actually always reverts for some reason. need to test further before merge |
Motivation
Closes #2932 .
Solution
Adds a
tryFfi
cheatcode, which returns aFfiResult
struct which contains:exit_code
stdout
as bytes.stderr
as bytes.