generated from metaplex-foundation/solana-project-template
-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Description
mpl-core = "0.3.0"
Assets can be deserialised, Collections can not. I am only able to deserialise into a BaseCollection which doesn't contain the plugin_list so I am unable to see plugins applied to the collection in my program.
mpl-core/clients/rust/src/hooked/advanced_types.rs
Lines 132 to 144 in 84de75a
#[derive(Debug)] | |
pub struct Asset { | |
pub base: BaseAssetV1, | |
pub plugin_list: PluginsList, | |
pub plugin_header: Option<PluginHeaderV1>, | |
} | |
#[derive(Debug)] | |
pub struct Collection { | |
pub base: BaseCollectionV1, | |
pub plugin_list: PluginsList, | |
pub plugin_header: PluginHeaderV1, | |
} |
// works
let asset_account = Asset::try_from(asset)?;
// does not work - try_from not implemented
let collection_account = Collection::try_from(collection)?;
Metadata
Metadata
Assignees
Labels
No labels