Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#2,804 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@BahadorGh がすでに取り組んでいます。

2025年7月7日 から。

  • #2805 @BahadorGh による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
50/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
solidity

調査の方向性

リンク先の CCIP Foundry ドキュメントの Working with Mainnet Forks セクションにある ExampleTest の実装から始めてください。feeToken の処理、ccipLocalSimulatorFork.setNetworkDetails で使用される Polygon のチェーンセレクター、および ccipReceiverAddress の設定を確認してください。完了条件は、例がコンパイルおよびデプロイでき、両方のネットワークが正しく記録され、宛先の receiver に "Hello world" が配信されることです。

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
MDX
スター
527
フォーク
480
平均マージ
1日 50分
マージ済み PR(30日)
91

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

smartcontractkit/documentation のほかの issue

smartcontractkit/documentation の issue をすべて見る

似ている issue

Blockchain の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。