Lesson 5: Error in verifying contract source code #5313
-
I'm getting an error in verifying contract source code on etherscan: I've tried compiling the code in Remix and it's working perfectly but getting error here. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
@wajidsiddiqi Yup, this happens while doing it manually. There are many reasons for this. But you can skip this because further you will learn to verify it programmatically. There are also other methods like hardhat command, and you can also verify it from remix ide. |
Beta Was this translation helpful? Give feedback.
-
Yeah, I've skipped this and now I'm on the programmatically verifying part. |
Beta Was this translation helpful? Give feedback.
-
gm @wajidsiddiqi, verification should work manually as well as programmatically using tools such as Hardhat Etherscan. A common mistake could have been that you enabled optimisation runs to 200 on Remix, however you switched this off on Etherscan's compiler which causes the verification to fail. Do share a repo if you need further help troubleshooting this issue! |
Beta Was this translation helpful? Give feedback.
@wajidsiddiqi Yup, this happens while doing it manually. There are many reasons for this. But you can skip this because further you will learn to verify it programmatically. There are also other methods like hardhat command, and you can also verify it from remix ide.