pub fn note_applied_extrinsic(r: &Result<(), &'static str>, encoded_len: u32) {
		Self::deposit_event(match r {
			Ok(_) => Event::ExtrinsicSuccess,
			Err(_) => Event::ExtrinsicFailed,
		}.into());

		let next_extrinsic_index = Self::extrinsic_index().unwrap_or_default() + 1u32;
		let total_length = encoded_len.saturating_add(Self::all_extrinsics_len());

		storage::unhashed::put(well_known_keys::EXTRINSIC_INDEX, &next_extrinsic_index);
		<AllExtrinsicsLen<T>>::put(&total_length);
	}
/// To be called immediately after an extrinsic has been applied.
To be called immediately after an extrinsic has been applied.
To be called immediately after an extrinsic has been applied .
pub fn note_applied_extrinsic(r: &Result<(), &'static str>, encoded_len: u32) {
		Self::deposit_event(match r {
			Ok(_) => Event::ExtrinsicSuccess,
			Err(_) => Event::ExtrinsicFailed,
		}.into());
		let next_extrinsic_index = Self::extrinsic_index().unwrap_or_default() + 1u32;
		let total_length = encoded_len.saturating_add(Self::all_extrinsics_len());
		storage::unhashed::put(well_known_keys::EXTRINSIC_INDEX, &next_extrinsic_index);
		<AllExtrinsicsLen<T>>::put(&total_length);
	}
pub fn note_applied_extrinsic ( r : & Result < ( ) , & ' static str > , encoded_len : u32 ) { Self :: deposit_event ( match r { Ok ( _ ) => Event :: ExtrinsicSuccess , Err ( _ ) => Event :: ExtrinsicFailed , } . into ( ) ) ; let next_extrinsic_index = Self :: extrinsic_index ( ) . unwrap_or_default ( ) + 1u32 ; let total_length = encoded_len . saturating_add ( Self :: all_extrinsics_len ( ) ) ; storage :: unhashed :: put ( well_known_keys :: EXTRINSIC_INDEX , & next_extrinsic_index ) ; < AllExtrinsicsLen < T > > :: put ( & total_length ) ; }
To be called immediately after an extrinsic has been applied.
To be called immediately after an extrinsic has been applied .
r
&Result<(), &'static str>
encoded_len
u32
r
&Result<(), &'static str>
encoded_len
u32