--- a/pallets/nft/src/lib.rs +++ b/pallets/nft/src/lib.rs @@ -1148,7 +1148,7 @@ let sender = T::CrossAccountId::from_sub(ensure_signed(origin)?); let collection = Self::get_collection(collection_id)?; - Self::create_item_internal(&sender, &collection, &owner, data); + Self::create_item_internal(&sender, &collection, &owner, data)?; Self::submit_logs(collection)?; Ok(()) @@ -2227,7 +2227,7 @@ >::insert(collection.id, collection.into_inner()); } - fn submit_logs(collection: CollectionHandle) -> DispatchResult { + pub fn submit_logs(collection: CollectionHandle) -> DispatchResult { if collection.logs.is_empty() { return Ok(()) }