-
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
hardhat-etherscan breaks on hardhat/console.sol #1117
Comments
i should note that i used the |
Hey @ldub, can you create a repo to reproduce this? Thanks! |
For anyone running into the same issue, |
Closing this for lack of more info. Please re-open if you can give us instructions on how to reproduce it. |
I had the smae issue "npx hardhat clean" resolved my problem |
@SirLancelot-OG help me a lot!! |
it worked for me as well ! thanks dude |
I'm reopening this issue and it seems to be pretty common. |
Thank you thank you thank you!!!! |
|
I think I know how to reproduce this:
|
|
Hello, new year here, so glad I've found the #1117 (comment) here, finally got past the few-hour debugging headache with this!-) |
to reproduce this error: |
for me npx hardhat clean worked |
|
Copying here what @morgansliman found out in #2507:
|
run into the same issue, thank you @SirLancelot-OG! |
Nice. fix my problem |
I used npx hardhat clean, but I hadn't solved the problem. |
Thank you so much |
Thankyou that save me ! |
We finally fixed this in Hardhat v2.17.0. The If someone is using v2.17.0 or later and runs into this problem, please let us know! |
when running
i was getting the error
this was being thrown by
const buildInfo = await artifacts.getBuildInfo(fqName);
on line https://github.com/nomiclabs/hardhat/blob/master/packages/hardhat-etherscan/src/solc/bytecode.ts#L97 whenfqName
washardhat/console.sol:console
.i added
in
token-2/node_modules/@nomiclabs/hardhat-etherscan/dist/src/solc/bytecode.js
and then the script verified just fineI am new to hardhat and dont know the root cause of why its even looking at the console but i hope this is sufficient information for @ItsNickBarry or someone else to fix :)
Thanks for the awesome tools all!
The text was updated successfully, but these errors were encountered: