关于2025年第四课的API密钥问题以及verify问题
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 20/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript, solidity
- Lĩnh vực
- blockchain, tooling
Hướng nghiên cứu
Review the lesson’s Etherscan configuration and scripts/deployFundMe.js, then inspect the @nomicfoundation/hardhat-verify stack trace around Etherscan.isVerified. Compare the reported Sepolia deployment and verification behavior with the tutorial’s expected flow; done means the outdated configuration and verification failure are clearly documented or corrected.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
课程中配置里写的代码是
etherscan: {
apiKey: {
sepolia: ETHERSCAN_API_KEY,
},
},
但截至2025年8月,似乎会报警告:
[WARNING] Network and explorer-specific api keys are deprecated in favour of the new Etherscan v2 api. Support for v1 is expected to end by May 31st, 2025. To migrate, please specify a single Etherscan.io api key the apiKey config value.
[警告]特定于网络和资源管理器的 API 密钥已被弃用,取而代之的是新的 Etherscan v2 API。对 v1 的支持预计将于 2025 年 5 月 31 日结束。要迁移,请指定单个 Etherscan.io apikey 配置值的 apiKey 配置值。
但我用以下写法后,似乎这个警告就消失了
etherscan: {
apiKey: ETHERSCAN_API_KEY // 使用单一的 Etherscan v2 API 密钥
},
还有一个问题,当我执行npx hardhat run scripts/deployFundMe.js --network sepolia后,编译成功,但verify似乎会有一些问题
contract deploying
contract has been deployed successfully, contract address is 0xbC7eCFc93b88706A068B46E2A1Ff6649A8AB7305
NetworkRequestError: A network request failed. This is an error from the block explorer, not Hardhat. Error:
at Etherscan.isVerified (/home/soul/Web3_tutorial/node_modules/@nomicfoundation/hardhat-verify/src/internal/etherscan.ts:140:13)
at processTicksAndRejections (node:internal/process/task_queues:105:5)
at SimpleTaskDefinition.action (/home/soul/Web3_tutorial/node_modules/@nomicfoundation/hardhat-verify/src/internal/tasks/etherscan.ts:108:20)
at Environment._runTaskDefinition (/home/soul/Web3_tutorial/node_modules/hardhat/src/internal/core/runtime-environment.ts:351:14)
at Environment.run (/home/soul/Web3_tutorial/node_modules/hardhat/src/internal/core/runtime-environment.ts:184:14)
at SimpleTaskDefinition.action (/home/soul/Web3_tutorial/node_modules/@nomicfoundation/hardhat-verify/src/index.ts:313:9)
at Environment._runTaskDefinition (/home/soul/Web3_tutorial/node_modules/hardhat/src/internal/core/runtime-environment.ts:351:14)
at Environment.run (/home/soul/Web3_tutorial/node_modules/hardhat/src/internal/core/runtime-environment.ts:184:14)
at main (/home/soul/Web3_tutorial/scripts/deployFundMe.js:19:5)
有人说可能是因为区块链需要时间同步导致的问题,但我等了很久仍然报以上的错误。
@QingyangKong @rgottleber
- Ngôn ngữ chính
- Solidity
- Star
- 1.5k
- Fork
- 383
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của smartcontractkit/Web3_tutorial_Chinese
-
第三节问题 Mapping 问题Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 25/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 15/100
-
hardhat 部署问题Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 10/100
smartcontractkit/Web3_tutorial_Chinese#96 · 2 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
smartcontractkit/Web3_tutorial_Chinese#94 · 1 bình luận ·
-
我在第六课中进行编译时总是提示我未安装open zeppelin/[email protected],但实际上我已经安装,并且缺少一个名为ccipReceive.sol的文件,具体问题如下图Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 20/100
smartcontractkit/Web3_tutorial_Chinese#93 · 6 bình luận ·
Tất cả issue của smartcontractkit/Web3_tutorial_Chinese
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
icon-project/sodax-sdks#696 ·
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
th30d4y/OpenLearnX#737 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
btclib-org/btclib-node#2656 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
hiero-ledger/hiero-sdk-js#4832 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Bigint RPC params are sent as strings when the application defines BigInt.prototype.toJSONCó thể đã có người làm @andreisilviudragnea đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày