--- a/pallets/nft/src/lib.rs +++ b/pallets/nft/src/lib.rs @@ -1876,21 +1876,6 @@ Ok(()) } - fn check_collection_sponsor( - collection_id: CollectionId, - subject: T::AccountId, - ) -> DispatchResult { - Self::collection_exists(collection_id)?; - let collection = >::get(collection_id).unwrap(); - - ensure!( - collection.sponsor_confirmed && - collection.sponsor == subject, - Error::::NoPermission, - ); - Ok(()) - } - fn is_item_owner(subject: T::AccountId, collection_id: CollectionId, item_id: TokenId) -> bool { let target_collection = >::get(collection_id).unwrap();