-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[builder-etherscan]: compiled contracts included in verification #804
Comments
Thanks for reporting this, @abcoathup! Unfortunately, we have to upload all of the contracts atm, as there's a bug in solc that can prevent the contracts from verifying otherwise. The good news is that we are about to ship a new compilation pipeline, that is aware of this bug, and will let us prune the unrelated contracts when we are sure that it won't cause any problems. |
I have the same problem. @alcuadrado Any news about this? |
@alcuadrado According to the solc issue about this, this problem exists for solc before 0.7.0. I am using solc 0.7.3 so I shouldn't have this problem. So can |
@alcuadrado @mudgen |
We are about to publish the biggest release of Buidler so far. We'll get back to this once that's done. |
@alcuadrado That seems exciting. I look forward to reading and using the big release coming out soon. Is it getting published this week? |
Yep. This week 🚀 |
Wow thank you |
Hey @alcuadrado, it looks like the repo has just been renamed to Has this bug been addresses in the latest version? Or is it still pending? |
Not yet! But with the changes in this release, tackling this issue should be possible 😄 |
Thank God it was renamed to hardhat, would be more easier to type on command line and more easier google search for issues. |
Great. Is it going to be tackled soon? |
As an interim solution, it looks like we could use solt. It's compatible with any development framework and it's using the same trick as hardhat-etherscan, that is, Solidity's standard json format. |
FYI: We are already working on this, and a fix should be available in a couple of days. |
We just released a new version of the plugin which improves on this as far as it can be done. Take a look at this comment for more info: #670 (comment) |
@abcoathup Hi, have you tried to verify again with the new release, I meet another problem and now can not verify contract, error message:
My package version is |
Try upgrading hardhat. |
Yeah, you are right, all is fine now, thanks a lot! |
When verifying with buidler-etherscan plugin, other compiled (unrelated) contracts are also included in the verification.
The following simple example is a project with two contracts, where A is deployed to a public testnet and then verified.
The verified contract on Etherscan shows both A and B files.
https://kovan.etherscan.io/address/0xBc2bfE23f7Cd054283A51Fe64f5b3D69d2CBeCa9#code
A.sol
B.sol
The text was updated successfully, but these errors were encountered: