Nfts: minor fixes (#13576)

* Rename owner_of_item to owned_item

* Move AttributeNamespace into the types file
This commit is contained in:
Jegor Sidorenko
2023-03-10 11:52:10 +02:00
committed by GitHub
parent 03b2358dd1
commit 689c2f6d4e
5 changed files with 25 additions and 28 deletions
@@ -126,21 +126,6 @@ pub enum BalanceStatus {
Reserved,
}
/// Attribute namespaces for non-fungible tokens.
#[derive(
Clone, Encode, Decode, Eq, PartialEq, RuntimeDebug, scale_info::TypeInfo, MaxEncodedLen,
)]
pub enum AttributeNamespace<AccountId> {
/// An attribute was set by the pallet.
Pallet,
/// An attribute was set by collection's owner.
CollectionOwner,
/// An attribute was set by item's owner.
ItemOwner,
/// An attribute was set by pre-approved account.
Account(AccountId),
}
bitflags::bitflags! {
/// Reasons for moving funds out of an account.
#[derive(Encode, Decode, MaxEncodedLen)]