Lesson 15 - contracts not verifying on goerli testnet #2411
-
as rinkeby is depricated I have deployed contracts on goerli but contracts are not verifying using hardhat deploy ( and hardhat-etherscan). Contracts are verifying successfully on rinkeby. Following is the error message I get when I deploy to goerli: Successfully submitted source code for contract We tried verifying your contract NftMarketplace without including any unrelated one, but it failed. Successfully submitted source code for contract NomicLabsHardhatPluginError: The contract verification failed. |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 11 replies
-
Make sure your hardhat.config has proper values (in networks as well as .env) for Goerli. After the above, if it still does not work, push to GitHub and I will look into it. |
Beta Was this translation helpful? Give feedback.
-
@RohitSingh107 : Try deploying to rinkeby and verify it as well!, I know its depreciated but just for the testing purpose do it! And let me know if it works on rinkeby |
Beta Was this translation helpful? Give feedback.
-
I have the exact same issue since yesterday, but it's not working on rinkeby either |
Beta Was this translation helpful? Give feedback.
-
@RohitSingh107 Try after some time, etherscan does this issue sometimes. |
Beta Was this translation helpful? Give feedback.
-
I had the same issue but I simply added a just verify script and ran that after i deployed. VerifyM const { ethers } = require("hardhat")
const { verify } = require("../utils/verify")
async function verifyM() {
const basicNft = await ethers.getContractAt(
"BasicNft",
"0xe78529A325847afEE045939F7df3FB11b6753E75"
)
const args = []
await verify(basicNft.address, args)
}
verifyM()
.then(() => process.exit(0))
.catch((error) => {
console.error(error)
process.exit(1)
}) |
Beta Was this translation helpful? Give feedback.
@RohitSingh107 Try after some time, etherscan does this issue sometimes.