Skip to content

Commit

Permalink
make ci happy
Browse files Browse the repository at this point in the history
  • Loading branch information
pandres95 committed Sep 23, 2024
1 parent bd72de1 commit 4bab6f1
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions substrate/frame/assets/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -586,8 +586,13 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
account.balance = account.balance.saturating_sub(actual);
if account.balance < details.min_balance {
debug_assert!(account.balance.is_zero(), "checked in prep; qed");
target_died =
Some(Self::dead_account(id, target, details, &account.reason, false)?);
target_died = Some(Self::dead_account(
id.clone(),
target,
details,
&account.reason,
false,
)?);
if let Some(Remove) = target_died {
return Ok(())
}
Expand Down Expand Up @@ -708,8 +713,13 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
// Remove source account if it's now dead.
if source_account.balance < details.min_balance {
debug_assert!(source_account.balance.is_zero(), "checked in prep; qed");
source_died =
Some(Self::dead_account(id, source, details, &source_account.reason, false)?);
source_died = Some(Self::dead_account(
id.clone(),
source,
details,
&source_account.reason,
false,
)?);
if let Some(Remove) = source_died {
Account::<T, I>::remove(&id, &source);
return Ok(())
Expand Down

0 comments on commit 4bab6f1

Please sign in to comment.