I am using OpenZeppelin Upgrades with Hardhat Forking Network, but when I try to Test/Deploy I keep getting this error.
Error: Invalid deployment with address 0xe7f1725E7734CE288F...... and txHash 0x4ebb5224a87d6875669d1bb6126d..................
Sometimes, one of the contracts gets deployed successfully, and then it stuck in one of the other ones.
I traced the @openzeppelin\upgrades-core and the problem stands here: https://github.com/OpenZeppelin/openzeppelin-upgrades/blob/bd53a81938d2a9781d9dac30f477d95bd58298e0/packages/core/src/deployment.ts#L35
Since is a forked network,
chainId = 1 and it markes the env as production. Is there any way to ignore this issue?