mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-11-05 10:21:07 +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
@@ -122,7 +122,7 @@ impl<T: Trait> AccountDb<T> for DirectAccountDb {
|
||||
for (address, changed) in s.into_iter() {
|
||||
let trieid = <Self as AccountDb<T>>::get_or_create_trieid(&self, &address);
|
||||
if let Some(balance) = changed.balance {
|
||||
let (imbalance, outcome) = balances::Module::<T>::ensure_free_balance_is(&address, balance);
|
||||
let (imbalance, outcome) = balances::Module::<T>::make_free_balance_be(&address, balance);
|
||||
total_imbalance = total_imbalance.merge(imbalance);
|
||||
if let UpdateBalanceOutcome::AccountKilled = outcome {
|
||||
// Account killed. This will ultimately lead to calling `OnFreeBalanceZero` callback
|
||||
|
||||
Reference in new issue
Block a user