fn create_inherent(data: &InherentData) -> Option<Self::Call> {
		if let Ok(Some(data)) =
			data.get_data::<<T::InherentOfflineReport as InherentOfflineReport>::Inherent>(
				&INHERENT_IDENTIFIER
			)
		{
			if <T::InherentOfflineReport as InherentOfflineReport>::is_empty(&data) {
				None
			} else {
				Some(Call::note_offline(data))
			}
		} else {
			None
		}
	}
/// Creates an inherent from the `InherentData`.
Creates an inherent from the `InherentData`.
Creates an inherent from the ` InherentData ` .
fn create_inherent(data: &InherentData) -> Option<Self::Call> {
		if let Ok(Some(data)) =
			data.get_data::<<T::InherentOfflineReport as InherentOfflineReport>::Inherent>(
				&INHERENT_IDENTIFIER
			)
		{
			if <T::InherentOfflineReport as InherentOfflineReport>::is_empty(&data) {
				None
			} else {
				Some(Call::note_offline(data))
			}
		} else {
			None
		}
	}
fn create_inherent ( data : & InherentData ) -> Option < Self :: Call > { if let Ok ( Some ( data ) ) = data . get_data :: < < T :: InherentOfflineReport as InherentOfflineReport > :: Inherent > ( & INHERENT_IDENTIFIER ) { if < T :: InherentOfflineReport as InherentOfflineReport > :: is_empty ( & data ) { None } else { Some ( Call :: note_offline ( data ) ) } } else { None } }
Creates an inherent from the `InherentData`.
Creates an inherent from the ` InherentData ` .
data
&InherentData
data
&InherentData