referrerpolicy=no-referrer-when-downgrade

Function pallet_assets::pallet::dispatchables::cancel_approval

source ·
pub fn cancel_approval<T: Config<I>, I: 'static>(
    id: T::AssetIdParameter,
    delegate: <<T as Config>::Lookup as StaticLookup>::Source,
)
Expand description

Cancel all of some asset approved for delegated transfer by a third-party account.

Origin must be Signed and there must be an approval in place between signer and delegate.

Unreserves any deposit previously reserved by approve_transfer for the approval.

  • id: The identifier of the asset.
  • delegate: The account delegated permission to transfer asset.

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.