mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-25 02:25:51 +00:00
Remove not required DigestItem conversion (#11165)
This commit is contained in:
@@ -153,7 +153,7 @@ impl<T: Config> Pallet<T> {
|
|||||||
AURA_ENGINE_ID,
|
AURA_ENGINE_ID,
|
||||||
ConsensusLog::AuthoritiesChange(new.into_inner()).encode(),
|
ConsensusLog::AuthoritiesChange(new.into_inner()).encode(),
|
||||||
);
|
);
|
||||||
<frame_system::Pallet<T>>::deposit_log(log.into());
|
<frame_system::Pallet<T>>::deposit_log(log);
|
||||||
}
|
}
|
||||||
|
|
||||||
fn initialize_authorities(authorities: &[T::AuthorityId]) {
|
fn initialize_authorities(authorities: &[T::AuthorityId]) {
|
||||||
@@ -225,7 +225,7 @@ impl<T: Config> OneSessionHandler<T::AccountId> for Pallet<T> {
|
|||||||
ConsensusLog::<T::AuthorityId>::OnDisabled(i as AuthorityIndex).encode(),
|
ConsensusLog::<T::AuthorityId>::OnDisabled(i as AuthorityIndex).encode(),
|
||||||
);
|
);
|
||||||
|
|
||||||
<frame_system::Pallet<T>>::deposit_log(log.into());
|
<frame_system::Pallet<T>>::deposit_log(log);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -627,7 +627,7 @@ impl<T: Config> Pallet<T> {
|
|||||||
|
|
||||||
fn deposit_consensus<U: Encode>(new: U) {
|
fn deposit_consensus<U: Encode>(new: U) {
|
||||||
let log = DigestItem::Consensus(BABE_ENGINE_ID, new.encode());
|
let log = DigestItem::Consensus(BABE_ENGINE_ID, new.encode());
|
||||||
<frame_system::Pallet<T>>::deposit_log(log.into())
|
<frame_system::Pallet<T>>::deposit_log(log)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn deposit_randomness(randomness: &schnorrkel::Randomness) {
|
fn deposit_randomness(randomness: &schnorrkel::Randomness) {
|
||||||
|
|||||||
@@ -498,7 +498,7 @@ impl<T: Config> Pallet<T> {
|
|||||||
/// Deposit one of this module's logs.
|
/// Deposit one of this module's logs.
|
||||||
fn deposit_log(log: ConsensusLog<T::BlockNumber>) {
|
fn deposit_log(log: ConsensusLog<T::BlockNumber>) {
|
||||||
let log = DigestItem::Consensus(GRANDPA_ENGINE_ID, log.encode());
|
let log = DigestItem::Consensus(GRANDPA_ENGINE_ID, log.encode());
|
||||||
<frame_system::Pallet<T>>::deposit_log(log.into());
|
<frame_system::Pallet<T>>::deposit_log(log);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Perform module initialization, abstracted so that it can be called either through genesis
|
// Perform module initialization, abstracted so that it can be called either through genesis
|
||||||
|
|||||||
Reference in New Issue
Block a user