Error on Verify and Publish Contract Source Code. #120
-
Patrick Collins, thank you for creating this massive course. So, as a follow-up to lesson 5, I tried to verify and publish the contract source code on Rinkeby Etherscan, but it keeps displaying in the compiler output tab...
What could be wrong😕? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
You're unable to import scripts when manually verifying. I think you need to remove the import and paste the whole contract into your submission (flatten your code). |
Beta Was this translation helpful? Give feedback.
-
I'd need more information on what you're doing.
Or... you could just skip verifying. Verification gets a lot easier when we get to hardhat. |
Beta Was this translation helpful? Give feedback.
-
Mine instantly verified without having to enter any information on etherscan, when I deployed it from remix. It maybe possible that its throwing an error because a contract with that exact byte code has already been verified on etherscan. When you view the contract code on etherscan, does it say verified and show you the goods? |
Beta Was this translation helpful? Give feedback.
-
I ask, because it generally doesn't ERROR if it recognizes the byte code.
It just says "similar blah blah exists" or whatever.
…On Sun., Jun. 12, 2022, 4:22 a.m. vaasanthk, ***@***.***> wrote:
Ya when you deploy the contract from remix you don't have to entire any
information it's already verified. When I deploy from vs code I run into
this problem, I think as you said it may have already been verified for
that byte code.
—
Reply to this email directly, view it on GitHub
<#120 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASHIK5GS6D7H5C2B4I2KH6LVOW27TANCNFSM5X2DOEZQ>
.
You are receiving this because you commented.Message ID:
<smartcontractkit/full-blockchain-solidity-course-js/repo-discussions/120/comments/2932129
@github.com>
|
Beta Was this translation helpful? Give feedback.
-
Have you flattened your code?
If you're verifying manually on etherscan, it won't recognize imports. You
have to add those full contracts to your source.
…On Sun., Jun. 12, 2022, 4:22 a.m. vaasanthk, ***@***.***> wrote:
Ya when you deploy the contract from remix you don't have to entire any
information it's already verified. When I deploy from vs code I run into
this problem, I think as you said it may have already been verified for
that byte code.
—
Reply to this email directly, view it on GitHub
<#120 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ASHIK5GS6D7H5C2B4I2KH6LVOW27TANCNFSM5X2DOEZQ>
.
You are receiving this because you commented.Message ID:
<smartcontractkit/full-blockchain-solidity-course-js/repo-discussions/120/comments/2932129
@github.com>
|
Beta Was this translation helpful? Give feedback.
I'd need more information on what you're doing.
Or... you could just skip verifying. Verification gets a lot easier when we get to hardhat.