when I use @nomiclabs/hardhat-etherscan verify a proxy contract,throw an error:
Error in plugin @nomiclabs/hardhat-etherscan: The contract you want to verify was compiled with solidity 0.8.2, but your configured compiler version is: 0.8.7.
Possible causes are:
- You are not in the same commit that was used to deploy the contract.
- Wrong compiler version selected in hardhat config.
- The given address is wrong.
- The selected network (rinkeby) is wrong.
The command to verify the contract is: npx hardhat verify --network rinkeby "contractAddress"
I Find the proxy contract's solidity version is ^0.8.0,and my implemention contract is 0.8.7, but the proxy contract is create by @openzeppelin/hardhat-upgrades,I can't edit it manually.
Please how can I solve the problem of this verification contract, thank you!