espresso-cash-public
espresso-cash-public copied to clipboard
collectionDetails on CreateMetadataAccountV3Data is an enum type
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:
- 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.