-
Notifications
You must be signed in to change notification settings - Fork 13
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
Add headless execution #39
Conversation
solc_version = "0.8.23" | ||
[profile.suave] | ||
whitelist = ["*"] |
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.
This info is used by the precompile execution.
src/Test.sol
Outdated
revert("Local Suave node not detected running"); | ||
} | ||
} catch (bytes memory reason) { | ||
try vm.ffi(inputs) returns (bytes memory response) {} |
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.
The suave-geth forge status
had two goals:
- Figure out if the
suave-geth
binary was available on PATH. - Check if there was a running instance of
suave-geth
to resolve the precompiles (status
subcommand).
Now, with the headless execution, we can skip step 2.
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.
LGTM.
@ferranbt LMK if the process of cutting a new suave-geth release is painful in any way. I've still got fresh context on CI and am happy to dive back in to smooth out any friction points. |
This PR uses the concept of local execution of the precompiles introduced in flashbots/suave-geth#185.
This PR requires a new release of
suave-geth
due to the changes in the commands. (CI fails because of that).Depends on #40