Skip to content

[Bug]: Problem in using the CCIP Local Simulator to fork mainnets - Foundry edition #2804

@BahadorGh

Description

@BahadorGh

Describe the bug

In the current docs of the ExampleTest in the Local Simulator to fork mainnets of ccip foundry section, there is some issues related to the complete implementation of the ExampleTest.

Issues:

  • As the feeToken: address(0), so we need to send the fee amount in the ccipSend
  • The polygon chain selector id is not correct to be used for setting the NetworkConfig. it needs to be the real chain id
  • The ccipReceiverAddress needs to be set correctly, which is not implemented to verify if the cross-chain from source to destination chain is working as expected.

To Reproduce

  1. Just copy and paste the complete implementation code in the [Working with Mainnet Forks](https://docs.chain.link/chainlink-local/build/ccip/foundry/forking-mainnets#working-with-mainnet-forks)

URLs

Expected behavior

The expectations are:

  • ccipLocalSimulatorFork.setNetworkDetails works fine and record the data for both Ethereum(source chain) and Polygon(destination chain) correctly
  • The desired data(here: "Hello world" string) get to the destination's ccipReceiverAddress contract
  • Compile and deploy without any issues

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions