js icon indicating copy to clipboard operation
js copied to clipboard

Candy Guard Mint Deprecated as of 1.0.0. Use MintV2 instead

Open Tristyn opened this issue 2 years ago • 9 comments
trafficstars

I have a Candy Machine UI, it fails to mint. The problem is metaplex-foundation/js uses the deprecated createMintInstruction from @metaplex-foundation/[email protected], and createMintV2Instruction was introduced 5 days ago in @0.4.1

This is really difficult because you already upgraded the program to deprecate V1 but haven't updated the library to support V2

A failed mint transaction: https://explorer.solana.com/tx/3Eg5QDfnaZuhHeqbrnhXms4LFRSKbmumzTgpvH6cBNJN7A1P1cnAaULYmX7BTcu4ZgbHpzxoMXZsZaSxWZVvYMvE The relevant parts:

Candy Guard Instruction
> Program logged: "Instruction: Mint"
> Program logged: "(Deprecated as of 1.0.0) Use MintV2 instead"
> Program invoked: System Program
  > Program returned success
> Program invoked: System Program
  > Program returned success
> Program invoked: Unknown Program (CndyV3LdqHUfDLmE5naZjVN8rBZz4tqhdefbAnjHG3JR)
  > Program logged: "Instruction: MintV2"
...
  > Program logged: "AnchorError occurred. Error Code: MissingTokenAccount. Error Number: 6025. Error Message: Missing token account."
  > Program consumed: 131061 of 913768 compute units
  > Program returned error: "custom program error: 0x1789"
> Program consumed: 189533 of 972240 compute units
> Program returned error: "custom program error: 0x1789"

Tristyn avatar Mar 26 '23 12:03 Tristyn