Hello, I'm creating an UUPS contract on the Optimistic network using hardhat and the contract of proxy is not verified.
I can verify implementation but not the proxy contract itself.
Etherscan says:
" The proxy contract at 0x3E818Baf68F6465b2d97604f072CE6E402B906F7 does not seem to be verified."
The same is for the kovan-optimistic (testnet)
Code to reproduce
// Contract code
import "@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
contract StrategyStorage is Initializable, UUPSUpgradeable, OwnableUpgradeable {
...
}
//deployment
const StrategyStorage = await hre.ethers.getContractFactory("StrategyStorage");
const strategy = await upgrades.deployProxy(StrategyStorage, [args],
{
initializer: "initialize",
kind: "uups"
});
await strategy.deployed();
Environment
"@nomiclabs/hardhat-ethers": "^2.0.3",
"@nomiclabs/hardhat-etherscan": "^2.1.8",
"@nomiclabs/hardhat-truffle5": "^2.0.2",
"@nomiclabs/hardhat-waffle": "^2.0.1",
"@nomiclabs/hardhat-web3": "^2.0.0",
"@openzeppelin/contracts": "^4.3.3",
"@openzeppelin/contracts-upgradeable": "^4.4.0",