Skip to content

Commit

Permalink
chore: rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
chungquantin committed Dec 16, 2024
1 parent b377088 commit d2d311d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pallets/api/src/nonfungibles/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,12 +321,14 @@ pub mod pallet {
item: ItemIdOf<T>,
to: AccountIdOf<T>,
) -> DispatchResult {
let from = ensure_signed(origin.clone())?;
ensure_signed(origin.clone())?;
let owner =
NftsOf::<T>::owner(collection, item).ok_or(NftsErrorOf::<T>::UnknownItem)?;
NftsOf::<T>::transfer(origin, collection, item, T::Lookup::unlookup(to.clone()))?;
Self::deposit_event(Event::Transfer {
collection,
item,
from: Some(from),
from: Some(owner),
to: Some(to),
price: None,
});
Expand Down

0 comments on commit d2d311d

Please sign in to comment.