AOSSIE-Org / AOSSIE-Org/Agora-Blockchain
BUG: CCIP router address assertion fails on local Hardhat network
- Ngôn ngữ chính
- JavaScript
- Star
- 97
- Fork
- 199
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Issue Description ✍️
## 📌 Describe the Bug
While running the test suite on a fresh local Hardhat setup, one of the ElectionFactory deployment tests fails due to a CCIP router address mismatch.
The failure seems to occur because the test expects a specific router address, which does not match the router deployed or mocked on a local Hardhat network.
## 🚨 Actual Behavior
Running `npx hardhat test` on a local Hardhat network causes the following test to fail:
ElectionFactory → Deployment → "Should set the ccip receiver router"
The assertion compares two different router addresses and fails, even though the contract deployment itself succeeds.
## 🎯 Expected Behavior
On a local Hardhat network, the test should either:
- use the locally deployed / mocked CCIP router address, or
- be skipped or handled differently if it is intended only for testnet or live environments.
## 📷 Screenshot
## 💡 Suggestions
I’m not sure what the preferred approach is here, but possible options could be:
1. conditionally skipping CCIP-related tests on local Hardhat networks, or
2. adjusting the test setup to use the locally deployed / mocked router.
### Record
- [x] I have synced all my node versions as mentioned in the project
- [x] I am using the same version of npm as is the project
- [x] My current branch is in sync with the development branch
- [x] I want to work on this issue
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.