Found the answer forChanging this from ethers version 6v5
Changing this
const deploymentReceipt = await contract.deployTransaction.wait(1);
To this on ethers v6
const deploymentReceipt = await contract.deploymentTransaction().wait(21);
Fixes the issue.