Skip to main content
Fixed to the correct equivalent and edited the post a bit.
Source Link

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.

Found the answer for ethers version 6
Changing this

  const deploymentReceipt = await contract.deployTransaction.wait(1);

To

  const deploymentReceipt = await contract.deploymentTransaction().wait(2);

Changing this from ethers v5

  const deploymentReceipt = await contract.deployTransaction.wait(1);

To this on ethers v6

  const deploymentReceipt = await contract.deploymentTransaction().wait(1);

Fixes the issue.

Source Link

Found the answer for ethers version 6
Changing this

  const deploymentReceipt = await contract.deployTransaction.wait(1);

To

  const deploymentReceipt = await contract.deploymentTransaction().wait(2);