Skip to content

feat: add MockForwarder for system-to-system tests #584

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

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

Conversation

dk1a
Copy link
Contributor

@dk1a dk1a commented May 26, 2025

I didn't want to manually create mocks for every system test that I'm refactoring to SOF. I don't really like having to rely on world selectors, but this forwarding wouldn't work for system libs atm

I refactored SOFAccessSystem.t.sol just as a showcase, the main benefit would be in losing all the mocks that projects using SOF have to maintain, like the ones in world-v2.
If you like this example I can clean it up more and add some tests for the mock forwarder itself

@dk1a dk1a requested a review from a team as a code owner May 26, 2025 15:58
@ccp-tezza
Copy link
Collaborator

Will take a look, thanks!

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.

2 participants