Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#2,804 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@BahadorGh ci sta già lavorando.

Dal 7/7/2025.

  • #2805 di @BahadorGh — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
50/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
solidity

Direzione di ricerca

Inizia con l’implementazione di ExampleTest nella sezione Working with Mainnet Forks della documentazione CCIP Foundry collegata. Controlla la gestione di feeToken, il selettore della chain Polygon utilizzato da ccipLocalSimulatorFork.setNetworkDetails e la configurazione di ccipReceiverAddress; il lavoro è completo quando l’esempio compila e viene deployato, registra correttamente entrambe le reti e consegna "Hello world" al receiver di destinazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
MDX
Stelle
528
Fork
478
Merge medio
1g 50m
PR unite (30g)
91

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di smartcontractkit/documentation

Tutte le issue di smartcontractkit/documentation

Issue simili

Altre issue su Blockchain

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.