Unboxed-Software / solana-course

A complete course for learning Solana, including creating and transferring tokens, making NFTs, on-chain app development, and more.
https://solana.com/developers
Mozilla Public License 2.0
395 stars 134 forks source link

Module 2 lesson 2 (Create Solana NFTs With Metaplex) Missing Parameters. #302

Closed yjshi2015 closed 8 months ago

yjshi2015 commented 8 months ago

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"

  1. 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> {
  ……
}