Hello everyone, I'm trying to call the "changeProxyAdmin" function to change the proxy admin of my contract but I'm struggling with it.
This is the code I'm using to change the proxy admin:
//Note: the "newProxyAdmin" is another address of my MetaMask account!
await upgrades.admin.changeProxyAdmin(addresses.matic.visa, newProxyAdmin);
When I run the command:
npx hardhat run ./scripts/matic/pass.upgradeProxyAdmin.ts --network matic
I get this error:
Error: Proxy admin is not the one registered in the network manifest
So I've deleted the .openzeppelin file and used the forceImport function to restore it like so:
await upgrades.forceImport(visaProxyAddress, Visa, { kind: 'transparent' });
But I get the same error message! What's going on?