pub fn cancel_approval<T: Config<I>, I: 'static>(
collection: T::CollectionId,
item: T::ItemId,
maybe_check_delegate: Option<<<T as Config>::Lookup as StaticLookup>::Source>,
)Expand description
Cancel the prior approval for the transfer of an item by a delegate.
Origin must be either:
- the
Forceorigin; Signedwith the signer being the Admin of thecollection;Signedwith the signer being the Owner of theitem;
Arguments:
collection: The collection of the item of whose approval will be cancelled.item: The item of the item of whose approval will be cancelled.maybe_check_delegate: IfSomewill ensure that the given account is the one to which permission of transfer is delegated.
Emits ApprovalCancelled 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::cancel_approval.