跪求!!!困扰两周了,关于第四课我用hardhat3 插件viem typescript模版,我的合约部署成功,但是验证失败

Offen
#94 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
20/100
Issue-Typ
Bug
Klarheit
Muss geklärt werden
Aktivitätsstatus
Veraltet
Tech-Stack
solidity, typescript
Bereich
blockchain, tooling

Rechercherichtung

Start with scripts/deploy-fund-me.ts at the verification call on line 26 and inspect the hardhat-verify stack trace shown in the report. Reproduce the Sepolia deployment, then determine whether the reported Etherscan API failure is actionable in this repository; done means the verification path is either working or documented as incompatible with the tutorial configuration.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

caiwei@localhost:~/caiwei/hardhat-example$ npx hardhat run scripts/deploy-fund-me.ts --network sepolia --show-stack-traces
Nothing to compile
Nothing to compile

[hardhat-keystore] Enter the password: ************
Sending transaction using the OP chain type
contract is address: 0xdfa9fbaa8d6d551d19a63a0eafba6570df72a8fb
Error HHE80001 in plugin hardhat-verify: The request to https://api.etherscan.io/v2/api failed with the message "". This error comes from Etherscan, not Hardhat.

HardhatError: HHE80001: The request to https://api.etherscan.io/v2/api failed with the message "". This error comes from Etherscan, not Hardhat.
at Etherscan.isVerified (/home/caiwei/caiwei/hardhat-example/node_modules/@nomicfoundation/hardhat-verify/src/internal/etherscan.ts:114:13)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async verifyContract (/home/caiwei/caiwei/hardhat-example/node_modules/@nomicfoundation/hardhat-verify/src/internal/verification.ts:127:18)
at async (/home/caiwei/caiwei/hardhat-example/scripts/deploy-fund-me.ts:26:1)
caiwei@localhost:~/caiwei/hardhat-example$

Image老师,兄弟们有没有人知道,现在验证的api是不是不让用了?

Vorherrschende Sprache
Solidity
Sterne
1.5k
Forks
383
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus smartcontractkit/Web3_tutorial_Chinese

Alle Issues in smartcontractkit/Web3_tutorial_Chinese

Ähnliche Issues

Weitere Issues zu Blockchain

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.