Hello,
I used "@openzeppelin/contracts": "^5.0.0"
as dependency with hardhat to deploy an upgradeable contract, the proxy pattern used is TransparentUpgradeableProxy
.
I deployed the token implementation contract on sepolia, and then I figured out the ProxyAdmin and the TransparentUpgradeableProxy are not the same as the ones on openzeppelin-contracts v5.0.0
, the contracts deployed are from v4.8.3. Noted at the contracts // OpenZeppelin Contracts (last updated v4.8.3) (proxy/transparent/ProxyAdmin.sol)
As I used v5.0.0, I expected the ProxyAdmin.sol and is the TransparentUpgradeableProxy.sol are the same as the ones in openzeppelin-contracts v5.0.0, does anyone know how to force the plugin to use the ProxyAdmin and TransparentUpgradeableProxy from openzeppelin-contracts v5.0.0 ?
I tried to dig a bit more why this happened, it might link to the configuration on this file https://github.com/OpenZeppelin/openzeppelin-upgrades/blob/master/packages/core/package.json ?
Here are all my dependencies :
{
"devDependencies": {
"@nomicfoundation/hardhat-ethers": "^3.0.4",
"@nomicfoundation/hardhat-toolbox": "^3.0.0",
"@openzeppelin/hardhat-upgrades": "^2.3.3",
"ethers": "^6.8.1",
"hardhat": "^2.19.0"
},
"dependencies": {
"@openzeppelin/contracts": "^5.0.0",
"@openzeppelin/contracts-upgradeable": "^5.0.0"
}
}