Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
method comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vjgaur committed May 23, 2023
1 parent d2d6805 commit b9b0f31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frame/proxy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,8 @@ impl<T: Config> Pallet<T> {
Self::deposit_event(Event::ProxyExecuted { result: e.map(|_| ()).map_err(|e| e.error) });
}

/// Removes all proxy delegates for a given delegator.
/// It takes the delegator's account ID as a parameter.
pub fn remove_all_proxy_delegates(delegator: &T::AccountId) {
let (_, old_deposit) = Proxies::<T>::take(&delegator);
T::Currency::unreserve(&delegator, old_deposit);
Expand Down

0 comments on commit b9b0f31

Please sign in to comment.