Can't change the proxy admin because of "Error: Proxy admin is not the one registered in the network manifest"

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?

This may be related to your other thread: upgradeProxyAdmin is not changing the ProxyAdmin of my Proxies - #2 by ericglau

If your proxy admin is an EOA rather than a ProxyAdmin contract, you would need to use that EOA to call changeAdmin directly on the TransparentUpgradeableProxy.

Thank you, yes indeed it is related to that!