使用hardhat验证智能合约(goeril测试网)

本文记录了在部署Erc721智能合约到goerli测试网并使用hardhat验证时遇到的错误及解决过程。通过参照GitHub上的解决方案,解决了依赖问题,最终成功验证智能合约。
摘要由CSDN通过智能技术生成

经历

使用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\proj
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值