mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-26 21:49:49 +00:00
fix unreserve_all_named (#9042)
This commit is contained in:
1 parent
60256d752e
commit
a032d62239
2 files changed
+74
-1
No files matched your search
@@ -166,7 +166,7 @@ pub trait NamedReservableCurrency<AccountId>: ReservableCurrency<AccountId> {
|
||||
/// Is a no-op if the value to be unreserved is zero.
|
||||
fn unreserve_all_named(id: &Self::ReserveIdentifier, who: &AccountId) -> Self::Balance {
|
||||
let value = Self::reserved_balance_named(id, who);
|
||||
Self::slash_reserved_named(id, who, value);
|
||||
Self::unreserve_named(id, who, value);
|
||||
value
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user