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

Fix forwardMessage mock in Forwarder.t.sol #16

Merged
merged 1 commit into from
May 1, 2024
Merged

Conversation

Karrq
Copy link

@Karrq Karrq commented Apr 30, 2024

Fixes regression introduced by #13, where the mock was applied indiscriminately to all enabled adapters.
This caused other tests (that weren't expecting the mock) to now fail.

retryEnvelope still needs this mock, so the appropriate function has been used instead, specifically in the execution of _validateRetryEnvelopeSuccessfull, mirroring the usage in _testForwardMessage.

To note that if we mirrored _mockAdaptersForwardMessage's behavior in the previous mocking, this regression wouldn't have been observed, meaning that the location wasn't neccessarily incorrect, just the way we were mocking.

@Karrq Karrq requested a review from nbaztec April 30, 2024 16:55
@Karrq Karrq merged commit 9679a47 into feat/zksync May 1, 2024
@Karrq Karrq deleted the fix/forwarder-test branch May 1, 2024 17:44
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