referrerpolicy=no-referrer-when-downgrade

Function pallet_uniques::pallet::dispatchables::approve_transfer

source ·
pub fn approve_transfer<T: Config<I>, I: 'static>(
    collection: T::CollectionId,
    item: T::ItemId,
    delegate: <<T as Config>::Lookup as StaticLookup>::Source,
)
Expand description

Approve an item to be transferred by a delegated third-party account.

The origin must conform to ForceOrigin or must be Signed and the sender must be either the owner of the item or the admin of the collection.

  • collection: The collection of the item to be approved for delegated transfer.
  • item: The item of the item to be approved for delegated transfer.
  • delegate: The account to delegate permission to transfer the item.

Important NOTE: The approved account gets reset after each transfer.

Emits ApprovedTransfer on success.

Weight: O(1)

§Warning: Doc-Only

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