pub fn destroy_class(owner: &T::AccountId, class_id: T::ClassId) -> DispatchResult {
		Classes::<T>::try_mutate_exists(class_id, |class_info| -> DispatchResult {
			let info = class_info.take().ok_or(Error::<T>::ClassNotFound)?;
			ensure!(info.owner == *owner, Error::<T>::NoPermission);
			ensure!(info.total_issuance == Zero::zero(), Error::<T>::CannotDestroyClass);
			Ok(())
		})
	}
/// Destroy NFT(non fungible token) class
Destroy NFT(non fungible token) class
Destroy NFT ( non fungible token ) class
pub fn destroy_class(owner: &T::AccountId, class_id: T::ClassId) -> DispatchResult {
		Classes::<T>::try_mutate_exists(class_id, |class_info| -> DispatchResult {
			let info = class_info.take().ok_or(Error::<T>::ClassNotFound)?;
			ensure!(info.owner == *owner, Error::<T>::NoPermission);
			ensure!(info.total_issuance == Zero::zero(), Error::<T>::CannotDestroyClass);
			Ok(())
		})
	}
pub fn destroy_class ( owner : & T :: AccountId , class_id : T :: ClassId ) -> DispatchResult { Classes :: < T > :: try_mutate_exists ( class_id , | class_info | -> DispatchResult { let info = class_info . take ( ) . ok_or ( Error :: < T > :: ClassNotFound ) ? ; ensure ! ( info owner owner Error T NoPermission ) ; ensure ! ( info total_issuance Zero zero ( ) Error T CannotDestroyClass ) ; Ok ( ( ) ) } ) }
Destroy NFT(non fungible token) class
Destroy NFT ( non fungible token ) class
owner
&T::AccountId
class_id
T::ClassId
owner
&T::AccountId
class_id
T::ClassId