Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Remove not required DigestItem conversion (#11165)
Browse files Browse the repository at this point in the history
  • Loading branch information
davxy authored Apr 4, 2022
1 parent 0d88803 commit 6f411cd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frame/aura/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl<T: Config> Pallet<T> {
AURA_ENGINE_ID,
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]) {
Expand Down Expand Up @@ -225,7 +225,7 @@ impl<T: Config> OneSessionHandler<T::AccountId> for Pallet<T> {
ConsensusLog::<T::AuthorityId>::OnDisabled(i as AuthorityIndex).encode(),
);

<frame_system::Pallet<T>>::deposit_log(log.into());
<frame_system::Pallet<T>>::deposit_log(log);
}
}

Expand Down
2 changes: 1 addition & 1 deletion frame/babe/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ impl<T: Config> Pallet<T> {

fn deposit_consensus<U: Encode>(new: U) {
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) {
Expand Down
2 changes: 1 addition & 1 deletion frame/grandpa/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ impl<T: Config> Pallet<T> {
/// Deposit one of this module's logs.
fn deposit_log(log: ConsensusLog<T::BlockNumber>) {
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
Expand Down

0 comments on commit 6f411cd

Please sign in to comment.