经历
使用openzeppelin写了个简单的Erc721合约,成功部署到goerli测试网,但是在验证的时候一直报错:
Error in plugin @nomiclabs/hardhat-etherscan: Failed to send contract verification request.
Endpoint URL: https://api-goerli.etherscan.io/api
Reason: Connect Timeout Error
NomicLabsHardhatPluginError: Failed to send contract verification request.
Endpoint URL: https://api-goerli.etherscan.io/api
Reason: Connect Timeout Error
at verifyContract (F:\w\hardhat\project2\node_modules\@nomiclabs\hardhat-etherscan\src\etherscan\EtherscanService.ts:35:11)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async attemptVerification (F:\w\hardhat\project2\node_modules\@nomiclabs\hardhat-etherscan\src\index.ts:461:20)
at async SimpleTaskDefinition.action (F:\w\hardhat\project2\node_modules\@nomiclabs\hardhat-etherscan\src\index.ts:765:48)
at async Environment._runTaskDefinition (F:\w\hardhat\project2\node_modules\hardhat\src\

本文记录了在部署Erc721智能合约到goerli测试网并使用hardhat验证时遇到的错误及解决过程。通过参照GitHub上的解决方案,解决了依赖问题,最终成功验证智能合约。
&spm=1001.2101.3001.5002&articleId=126822056&d=1&t=3&u=b123e06fa1ac467582067f9ed93985aa)
1994

被折叠的 条评论
为什么被折叠?



