Lesson 14: TypeError: basicNft.mintNft is not a function #4734
Unanswered
umairahmed88
asked this question in
Q&A
Replies: 2 comments 2 replies
-
@umairahmed88 Please leave your repo link so we can check the error location, the error is not here. |
Beta Was this translation helpful? Give feedback.
2 replies
-
That's See:
Answer: const basicMintTx = await basicNft.mintNft(); // ❌
const basicMintTx = await basicNft.mintNFT(); // ✅ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
i tried to solve this but unable to find bugs please help me
i got this error
TypeError: basicNft.mintNft is not a function
at Object.module.exports [as func] (hardHat/hardhat-nft/deploy/04.mint.js:8:37)
this is my code
const { ethers, network } = require("hardhat");
const { developmentChains } = require("../helper-hardhat-config");
module.exports = async function ({ getNamedAccounts }) {
const { deployer } = await getNamedAccounts();
};
Beta Was this translation helpful? Give feedback.
All reactions