mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-13 22:27:06 +00:00
Rename ensure_free_balance_is to make_free_balance_be (#2092)
This commit is contained in:
1 parent
ce32bfa923
commit
91c7c7188d
4 files changed
+20
-20
No files matched your search
@@ -644,7 +644,7 @@ where
|
||||
who: &T::AccountId,
|
||||
value: Self::Balance,
|
||||
) -> Self::PositiveImbalance {
|
||||
let (imbalance, _) = Self::ensure_free_balance_is(who, Self::free_balance(who) + value);
|
||||
let (imbalance, _) = Self::make_free_balance_be(who, Self::free_balance(who) + value);
|
||||
if let SignedImbalance::Positive(p) = imbalance {
|
||||
p
|
||||
} else {
|
||||
@@ -653,7 +653,7 @@ where
|
||||
}
|
||||
}
|
||||
|
||||
fn ensure_free_balance_is(who: &T::AccountId, balance: T::Balance) -> (
|
||||
fn make_free_balance_be(who: &T::AccountId, balance: T::Balance) -> (
|
||||
SignedImbalance<Self::Balance, Self::PositiveImbalance>,
|
||||
UpdateBalanceOutcome
|
||||
) {
|
||||
|
||||
Reference in new issue
Block a user