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

Zp/update mockrouter #1427

Merged
merged 7 commits into from
Sep 12, 2024
Merged

Zp/update mockrouter #1427

merged 7 commits into from
Sep 12, 2024

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.

Copy link
Contributor

github-actions bot commented Sep 11, 2024

LCOV of commit 137b5fa during Solidity Foundry #8108

Summary coverage rate:
  lines......: 97.7% (2179 of 2230 lines)
  functions..: 94.9% (409 of 431 functions)
  branches...: 93.5% (520 of 556 branches)

Files changed coverage rate: n/a

@cl-sonarqube-production
Copy link

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

@RensR RensR merged commit 71be1a7 into ccip-develop Sep 12, 2024
132 checks passed
@RensR RensR deleted the zp/update-mockrouter branch September 12, 2024 09:40
valerii-kabisov-cll pushed a commit that referenced this pull request Oct 3, 2024
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.
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.

3 participants