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

Suave forge integration without SuaveForge.sol #11

Merged
merged 10 commits into from Jan 5, 2024

Conversation

ferranbt
Copy link
Collaborator

@ferranbt ferranbt commented Jan 4, 2024

This PR introduces a new way to integrate with Forge. Before, a separate library (SuaveForge.sol) was used to interact with the Suave node and perform the precompile requests. However, scripts or tests written with this library could not be deployed since they used forge-specific precompiles (i.e. vm.ffi).

In the new approach, we keep the same logic to interact with Suave (through vm.ffi calls) but that logic is deployed directly at the addresses of the precompiles with a forge cheat-code (vm.etch). Thus, we can use the normal Suave.sol library and resolve the logic requests as we do with SuaveForge.sol.

@ferranbt ferranbt marked this pull request as ready for review January 5, 2024 10:40
@ferranbt ferranbt merged commit ed5306e into main Jan 5, 2024
1 check passed
@ferranbt ferranbt deleted the feature/suave-forge-stuff branch January 9, 2024 10:50
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

2 participants