Skip to content

Commit

Permalink
fix(pallet-pass): missing clone for asset id
Browse files Browse the repository at this point in the history
  • Loading branch information
pandres95 committed Sep 23, 2024
1 parent c81ad85 commit bd72de1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion substrate/frame/assets/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,9 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
} else if let Some(deposit) = v.reason.take_deposit() {
T::Currency::unreserve(&who, deposit);
}
if let Remove = Self::dead_account(id, &who, &mut details, &v.reason, false)? {
if let Remove =
Self::dead_account(id.clone(), &who, &mut details, &v.reason, false)?
{
Account::<T, I>::remove(&id, &who);
dead_accounts.push(who);
} else {
Expand Down

0 comments on commit bd72de1

Please sign in to comment.