Failed to upgrade implementation of proxy using proxy admin

Hi @Fagun, in your deployment script, when deploying the TransparentUpgradeableProxy from OpenZeppelin Contracts v5, don’t pass in an existing ProxyAdmin address as the second parameter (initialOwner). Instead, pass in the address that you want to use as the owner of the ProxyAdmin.

TransparentUpgradeableProxy in OpenZeppelin Contracts v5 will deploy its own instance of ProxyAdmin during construction, using the initialOwner argument.

See documentation for reference.

Also see related threads: