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

Offen
#2,804 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

@BahadorGh arbeitet bereits daran.

Seit 07.7.2025.

  • #2805 von @BahadorGh — offen

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
50/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
solidity

Rechercherichtung

Beginne mit der ExampleTest-Implementierung im Abschnitt Working with Mainnet Forks der verlinkten CCIP Foundry-Dokumentation. Überprüfe die feeToken-Verarbeitung, den für ccipLocalSimulatorFork.setNetworkDetails verwendeten Polygon-Chain-Selector und die Einrichtung von ccipReceiverAddress; als abgeschlossen gilt die Aufgabe, wenn das Beispiel kompiliert und deployt wird, beide Netzwerke korrekt aufgezeichnet werden und "Hello world" an den Ziel-Receiver zugestellt wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug triage
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

Vorherrschende Sprache
MDX
Sterne
531
Forks
482
Ø Merge
1 T. 5 Std.
Gemergte PRs (30 T.)
97

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus smartcontractkit/documentation

Alle Issues in smartcontractkit/documentation

Ähnliche Issues

Weitere Issues zu Blockchain

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.