第4课 verify合约的时候报Etherscan API v1 过期的错误 #98
Unanswered
libaoli2020
asked this question in
Q&A
Replies: 1 comment
-
|
这部分教程已经过时了,你可以看看 Hardhat 3 中验证合约的方式 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
运行命令:npx hardhat verify --network sepolia 0x711697B1b6c83f72A626Cee022962cBD85e13Ca3 "10"
报错:

hardhat-verify found one or more errors during the verification process:
Etherscan:
You are using a deprecated V1 endpoint, switch to Etherscan API V2 using https://docs.etherscan.io/v2-migration
我的配置:
etherscan: {
apiKey: {
sepolia: "T1BDVK2AYVZP6G8K32TG9UU58DZI8GRRJ2"
}
}
目前的包的版本的是:
"devDependencies": {
"@chainlink/contracts": "^1.5.0",
"@chainlink/env-enc": "^1.0.5",
"@nomicfoundation/hardhat-toolbox": "^6.1.0",
"@nomicfoundation/hardhat-verify": "^2.1.3",
"dotenv": "^17.2.3",
"hardhat": "^2.27.0"
}
我的api key 是新建的;这个是要把 hardhat 中 etherscan的版本升级吗?升级到多少版本呢
Beta Was this translation helpful? Give feedback.
All reactions