You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
4xMafole
changed the title
collectionDetails on CreateMetadataAccountV3Data is not a bool
collectionDetails on CreateMetadataAccountV3Data is an enum type
Nov 29, 2022
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 DocumentationTo Reproduce
Steps to reproduce the behavior:
collectionDetails = true
.e.g:
Expected behavior
To create a collection NFT differentiating it from normal NFT using
collectionDetails
field.The text was updated successfully, but these errors were encountered: