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

3
  • It is working , thanks for your suggestions Oct 2, 2023 at 6:10
  • Cool, mark this as an answer :) Oct 2, 2023 at 6:19
  • @AnjishnuGanguly check the tick to let the community know that this query has been solved.
    – Serenity
    Dec 13, 2023 at 13:43

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.