-
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-verify is not working with the error of "Compiled contract deployment bytecode does NOT match the transaction deployment bytecode" #4918
Comments
Is this repo open source? Can you point us at it, or share the code of the sturdy leverage contract? |
I tried using the Standard-Json-Input file. |
Have you tried verifying using that json file directly on etherscan? If it gives the same error then this is not a The error:
This suggests that the compiled bytecode for the contract is not exactly the same as the bytecode in the deployment transaction on chain. This can happen if there are any source code changes at all (comments and whitespace included) in any of the files in that json object. |
Sure, I tried on etherscan and saw the error as well. |
The bytecode generated subtly changes between tools. If you deployed through HH deploy you should try verifying through Hardhat deploys verification command. |
when we can use the |
I tried using this tool as well, now I'm getting the following error.
|
I am unsure, the complaint is that the libraries object that is being passed in your json input is invalid, it is missing paths. But I have limited knowledge of I would try on the #hardhat-deploy discord channel, and see if the community has any suggestions. |
I tried using the following command. |
hi @iris112, that command is part of |
Version of Hardhat
2.17.3
What happened?
I'm using the
[email protected]
to verify the deployed contract on the etherscan.In the past, I can successfully verify every deployed contracts but now I can't verify and I'm getting error.
Minimal reproduction steps
After deploy the contract on the ethereum mainnet using the
hardhat-deploy
, I tried run the following command to verify the contract.npx hardhat verify CONTRACT_ADDRESS
But I'm getting the following error.
Search terms
No response
The text was updated successfully, but these errors were encountered: