Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#2,804 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
50/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
solidity
Lĩnh vực
blockchain, documentation

Hướng nghiên cứu

Bắt đầu với phần triển khai ExampleTest trong mục Working with Mainnet Forks của tài liệu CCIP Foundry được liên kết. Kiểm tra việc xử lý feeToken, chain selector của Polygon được ccipLocalSimulatorFork.setNetworkDetails sử dụng và thiết lập ccipReceiverAddress; được xem là hoàn thành khi ví dụ biên dịch và deploy thành công, ghi nhận chính xác cả hai network và gửi "Hello world" đến receiver đích.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
MDX
Star
528
Fork
478
Merge trung bình
18 giờ 3 phút
Pull request đã merge (30 ngày)
85

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của smartcontractkit/documentation

Tất cả issue của smartcontractkit/documentation

Issue tương tự

Thêm issue về Blockchain

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.