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

Updating MockRouter to align with EVM2EVMOffRamp. #1425

Conversation

zeuslawyer
Copy link
Collaborator

Specifically, allow for empty message with zero gas.

Motivation

EVM2EVMOffRamp checks the message for content and gaslimit and skips calling ccip receive if they're not present.
Consequently the mock errors (ReceiverError) when sending only tokens to a smart contract. This update will help chainlink-local correctly process fork-based tests too.

Solution

The MockRouter implementation of _routeMessage was last updated in #669 and is out of sync with the logic in EVM2EVMOffRamp.

Specifically, allow for empty message with zero gas.
@zeuslawyer
Copy link
Collaborator Author

moved to
#1427

@zeuslawyer zeuslawyer closed this Sep 11, 2024
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.

1 participant