Trying to verify a Metaplex NFT as part of a collection
Logs:
[
"Program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s invoke [1]",
"Program log: IX: Verify",
"Program log: Collection Not Found on Metadata",
"Program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s consumed 14670 of 200000 compute units",
"Program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s failed: custom program error: 0x50"
].
Here is my code
const collectionAddress = UMIPublicKey("");
const metadata = findMetadataPda(umi, { mint: collectionAddress });
await verifyCollectionV1(umi, {
metadata,
collectionMint: collectionAddress,
authority: umi.identity,
}).sendAndConfirm(umi);