Hello!
I've been playing with Upgradeable Proxies with Hardhat, and I'm facing an issue.
After seeing I could not upgrade my proxy, I've changed the proxy admin
, but I'm now in a situation where my admin is the same as the owner (upgrades.erc1967.getAdminAddress
and myProxy.owner()
returning the same address).
The thing is that I can not interact with the contract implementation because it keeps returning me admin cannot fallback to proxy target
(which is normal). I've then thought I had to change the admin again to another address, but changeProxyAdmin
returns Proxy admin is not the one registered in the network manifest
.
I've changed the admin.address
of mychain.json
in the .openzeppelin
folder to the address returned by myProxy.owner()
, but changeProxyAdmin
now returns ProviderError: not enough gas supplied for intrinsic gas costs
.
I guess I need to manage, in some way, to change my proxy's admin to another address in order to be able to interact again with my implementation.
Does someone have an idea of my issue/how to fix it ?
Thanks!
EDIT: Forgot to specify that I had way more than enough funds to upgrade my contracts, so that's not the cause here