metaplex-foundation / umi-hotline

2 stars 0 forks source link

InstructionNotSupported: Instruction not supported for ProgrammableNonFungible assets #5

Closed joefitter closed 1 year ago

joefitter commented 1 year ago

Umi version

0.7.2

Code

const collectionMint = await metaplex.nfts().findByMint({ mintAddress: new PublicKey(collection) }) as Nft;

const verifyInstruction = setAndVerifyCollection(umi, {
  collection: publicKey(collection.address.toBase58()),
  collectionAuthority: umi.identity,
  collectionMasterEditionAccount: publicKey(collectionMint.edition.address.toBase58()),
  collectionMint: publicKey(collectionMint.mint.address.toBase58()),
  metadata: publicKey(metadata.address.toBase58())
}).getInstructions()

// build and send transaction using UMI.

Error

Program Logs:
| Program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s invoke [1]
| Program log: Instruction not supported for ProgrammableNonFungible assets
| Program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s consumed 9746 of 200000 compute units
| Program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s failed: custom program error: 0x99
joefitter commented 1 year ago

Context - I am trying to add and verify a sized collection to an existing pNFT but get the same Instruction not supported for pNFT message using the JS SDK, mpl-token-metadata (legacy) and also mpl-token-metadata@alpha via the UMI lib

Is there any way I am able to verify the collection for pNFTs?

Adding the collection via an SDK metaplex.nfts().update() works if I do not verify, but I cannot seem to verify after.

joefitter commented 1 year ago

OK I found it - verifyCollectionV1 🎉