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

Commit

Permalink
Update frame/proxy/src/lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
juangirini committed May 23, 2023
1 parent b9b0f31 commit f1a1f22
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frame/proxy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,9 @@ impl<T: Config> Pallet<T> {
}

/// Removes all proxy delegates for a given delegator.
/// It takes the delegator's account ID as a parameter.
///
/// Parameters:
/// - `delegator`: The delegator account.
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 f1a1f22

Please sign in to comment.