Minting still fails. I updated my script, but I get an error when calling the mint function. My revised code:
require('dotenv').config();
const ethersLib = require('ethers');
const nftCompiled = require('./NFTCompiled.json');
const netProvider = ethersLib.getDefaultProvider('sepolia', { api: process.env.API_KEY });
const userAccount = new ethersLib.Wallet(process.env.PRIVATE_KEY, netProvider);
const nftContract = new ethersLib.Contract(process.env.CONTRACT_ADDRESS, nftCompiled.abi, userAccount);
nftContract.mintNFT(process.env.USER_ADDRESS).then(console.log).catch(console.error);
Is my contract address correctly set up?