js icon indicating copy to clipboard operation
js copied to clipboard

When creating a candy machine 0x52 eh

Open aeaa1998 opened this issue 3 years ago • 0 comments

The following error occurs when I create a candy machine with a collection.

Maybe I am missing something? I've tried creating the nft with the minimum input and it does not work. The Metaplex identity is with my wallet

image

Code to create the nft

const {uri, metadata} = await metaplex.value.nfts().uploadMetadata({
  name: title,
  description: description,
  // image: metafile,
  symbol: title,
}).run()
 
const {
  nft,
  mintAddress,
  metadataAddress,
  masterEditionAddress,
  tokenAddress,
} = await metaplex.value
  .nfts()
  .create({
    uri,
    name: title,
    maxSupply: null,
    sellerFeeBasisPoints: 200,
    // isCollection: true
  })
  .run();

Code to create candy machine

     const { candyMachine } = await client
        .create({
          price: sol(1),
          itemsAvailable: toBigNumber(1),
          sellerFeeBasisPoints: 500,
          collection: nft.address,
        })
        .run();

aeaa1998 avatar Aug 16 '22 03:08 aeaa1998