Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

collectionDetails on CreateMetadataAccountV3Data is an enum type #650

Open
4xMafole opened this issue Nov 28, 2022 · 0 comments
Open

collectionDetails on CreateMetadataAccountV3Data is an enum type #650

4xMafole opened this issue Nov 28, 2022 · 0 comments
Labels
bug Something isn't working mobile-app

Comments

@4xMafole
Copy link
Contributor

Describe the bug
On our package, I can see that the collectionDetails parameter is a bool type. Meanwhile, on the Metaplex documentation says this field is an enum.
"The CollectionDetails is an optional enum which currently contains only one option V1. This option is a struct that contains the following field:
Size: The size of the collection, i.e. the number of NFTs that are directly linked to this Collection NFT. This number is automatically computed by the Token Metadata program but can also be set manually to facilitate the migration process.
" - Metaplex Documentation

To Reproduce
Steps to reproduce the behavior:

  1. Create a metadata account data and set collectionDetails = true.
    e.g:
   final dataMetadataCollection = CreateMetadataAccountV3Data(
      name: nftData.name,
      symbol: nftData.symbol,
      uri: nftData.dataUri,
      sellerFeeBasisPoints: 500,
      isMutable: true,
      colectionDetails: true, //Here is the field
      creators: [
        MetadataCreator(
          address: owner.publicKey,
          verified: true,
          share: 100,
        ),
      ],
    );

Expected behavior
To create a collection NFT differentiating it from normal NFT using collectionDetails field.

@4xMafole 4xMafole added bug Something isn't working mobile-app labels Nov 28, 2022
@4xMafole 4xMafole changed the title collectionDetails on CreateMetadataAccountV3Data is not a bool collectionDetails on CreateMetadataAccountV3Data is an enum type Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mobile-app
Projects
None yet
Development

No branches or pull requests

1 participant