diff --git a/pallets/api/src/nonfungibles/mod.rs b/pallets/api/src/nonfungibles/mod.rs index 63dedf07..62da6346 100644 --- a/pallets/api/src/nonfungibles/mod.rs +++ b/pallets/api/src/nonfungibles/mod.rs @@ -321,12 +321,14 @@ pub mod pallet { item: ItemIdOf, to: AccountIdOf, ) -> DispatchResult { - let from = ensure_signed(origin.clone())?; + ensure_signed(origin.clone())?; + let owner = + NftsOf::::owner(collection, item).ok_or(NftsErrorOf::::UnknownItem)?; NftsOf::::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, });