Assign an NFT to a collection
Now that we have a collection, let's change our existing code so that newly created NFTs get added to the collection. First, let's modify our createNft function so that the call to nfts().create includes the collection field.
but the code is not complete.
async function createNft(
metaplex: Metaplex,
uri: string,
nftData: NftData,
// lack of collectionMint: PublicKey
): Promise<NftWithToken> {
……
}
The createNft function in step 10 of Lab is missing the
collectionMint
parameter.The course content is Here The step 10 of "Create Solana NFTs With Metaplex"
but the code is not complete.