js icon indicating copy to clipboard operation
js copied to clipboard

Error Printing Edition

Open myyellowshoe opened this issue 1 year ago • 9 comments

Seeing this fun error when printing an edition:

Token Metadata Program Instruction

Program logged: "IX: Mint New Edition from Master Edition Via Token" Program logged: "Already initialized" Program consumed: 23601 of 1169142 compute units Program returned error: "custom program error: 0x3"

My Code

      await metaplex
        .nfts()
        .builders()
        .printNewEdition({
          originalSupply: (nftToMint.edition as NftOriginalEdition).supply,
          newOwner: payerPublicKey,
          originalMint: new PublicKey(masterMintAddress),
        })

Whats odd is that this has been printing editions for quite some time without issue, and other similar editions are printing fine.

Some questions:

  • I'm wondering if an account somehow initialized partially and now when trying to print the next edition it can't because it already exists?
  • Is there way to clean up the prior metadata account?
  • Maybe the edition number is incorrect in this case?

myyellowshoe avatar Jun 15 '23 14:06 myyellowshoe