This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
pallet-nfts: AttributeNamespace inconsistency between collection_attribute and set_collection_attribute #14295
Labels
J2-unconfirmed
Issue might be valid, but it’s not yet known.
Is there an existing issue?
Experiencing problems? Have you tried our Stack Exchange first?
Description of bug
When using the
frame_support::traits::tokens::nonfungibles_v2::Inspect
/Mutate
traits implementation in pallet-nfts, there is a discrepancy between theAttributeNamespace
used for storing and retrieving collection attributes.The setter
fn set_collection_attribute
usesAttributeNamespace::Pallet
whereas the getterfn collection_attribute
usesAttributeNamespace::CollectionOwner
.The result is that no data is found when trying to retrieve a previously stored value. The methods should be using the same namespace, probably
CollectionOwner
is the most appropriate.Steps to reproduce
The
result
will beNone
instead of the expectedSome(value)
.The text was updated successfully, but these errors were encountered: