Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
gui1117 committed Sep 6, 2024
1 parent 04bd5ae commit 24ab012
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion substrate/frame/assets/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -880,7 +880,7 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
amount: T::Balance,
) -> DispatchResult {
let mut d = Asset::<T, I>::get(&id).ok_or(Error::<T, I>::Unknown)?;
ensure!(details.is_live(), Error::<T, I>::AssetNotLive);
ensure!(d.is_live(), Error::<T, I>::AssetNotLive);
Approvals::<T, I>::try_mutate(
(id.clone(), &owner, &delegate),
|maybe_approved| -> DispatchResult {
Expand Down

0 comments on commit 24ab012

Please sign in to comment.