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 (
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
Proxy admin is not the one registered in the network manifest.
I've changed the
mychain.json in the
.openzeppelin folder to the address returned by
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 ?
EDIT: Forgot to specify that I had way more than enough funds to upgrade my contracts, so that's not the cause here