Verify upgradeable contract using Contracts Upgradeable 4


I’m trying to get my contract verified on etherscan and basically it’s not working using the hardhat-etherscan.

@openzeppelin/contracts-upgradeable”: “^4.0.0”,
@openzeppelin/hardhat-upgrades”: “^1.6.0”,

So, I deploy the contract and everything is great and then when I check the validation is compiled on etherscan as 0.6.8 when it should have been the latest 0.8.0. This is causing me massive issues.

Help, please?

1 Like

Can you link me your contracts?

When you deploy a contract, what version is the compiler? If you are using the Solidity Extension for VS Code then you might need to change that.

What version are the contracts you are importing? Are you sure you are importing contracts with the right solidity version?

In my screenshot you can see that I have a solidity version of 0.8.3, is that your solidity version of your contract that you are working on?

You can also see that in my right click menu I have access to some Solidity Compiler options.

1 Like