mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 17:01:09 +00:00
Rename ensure_free_balance_is to make_free_balance_be (#2092)
This commit is contained in:
@@ -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