0

enter image description here

This is the deploy script that I have written still it is not running.

1 Answer 1

4

Try two things:

  1. Comment out the require statement.

  2. Directly use deployContract function.

    const mynft= await ethers.deployContract("MyNFT");
      await wallet.waitForDeployment();
    

Also notice in the console log statement that mynft.address should be mynft.target

1
  • It is working , thanks for your suggestions Commented Oct 2, 2023 at 6:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.