referrerpolicy=no-referrer-when-downgrade

Function pallet_nfts::pallet::dispatchables::lock_item_properties

source ·
pub fn lock_item_properties<T: Config<I>, I: 'static>(
    collection: T::CollectionId,
    item: T::ItemId,
    lock_metadata: bool,
    lock_attributes: bool,
)
Expand description

Disallows changing the metadata or attributes of the item.

Origin must be either ForceOrigin or Signed and the sender should be the Admin of the collection.

  • collection: The collection if the item.
  • item: An item to be locked.
  • lock_metadata: Specifies whether the metadata should be locked.
  • lock_attributes: Specifies whether the attributes in the CollectionOwner namespace should be locked.

Note: lock_attributes affects the attributes in the CollectionOwner namespace only. When the metadata or attributes are locked, it won’t be possible the unlock them.

Emits ItemPropertiesLocked.

Weight: O(1)

§Warning: Doc-Only

This function is an automatically generated, and is doc-only, uncallable stub. See the real version in Pallet::lock_item_properties.