We are trying to prepare a contract for upgrade as we always do but get an error, here is our code:
VNFTxV4 = await ethers.getContractFactory("VNFTxV4");
console.log("Preparing upgrade...");
vnftxV4Address = await upgrades.prepareUpgrade(proxy, VNFTxV4, {
unsafeAllowCustomTypes: true,
});
Environment
Using hardhat-upgrades on osx
Details
the error I get is
Error: Deployment at address 0x4fEd51889672dcF22EDe6CD2421cF2aD74E1B287 is not registered
Code to reproduce