From 80eb8501e10906de3a1c097b833ecba641430ee7 Mon Sep 17 00:00:00 2001 From: akildemir Date: Wed, 26 Jun 2024 12:03:10 +0300 Subject: [PATCH] bug fixes --- frame/babe/src/equivocation.rs | 2 +- frame/babe/src/lib.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frame/babe/src/equivocation.rs b/frame/babe/src/equivocation.rs index 3cb76280e50fa..0c8f41b4d6981 100644 --- a/frame/babe/src/equivocation.rs +++ b/frame/babe/src/equivocation.rs @@ -167,7 +167,7 @@ where let reporter = reporter.or_else(|| { let digest = >::digest(); let pre_runtime_digests = digest.logs.iter().filter_map(|d| d.as_pre_runtime()); - Pallet::find_author(pre_runtime_digests) + Pallet::::find_author(pre_runtime_digests) }); let offender = equivocation_proof.offender.clone(); let slot = equivocation_proof.slot; diff --git a/frame/babe/src/lib.rs b/frame/babe/src/lib.rs index 08c5e61b36aee..e8909bcae4ad6 100644 --- a/frame/babe/src/lib.rs +++ b/frame/babe/src/lib.rs @@ -37,7 +37,7 @@ use sp_consensus_babe::{ EquivocationProof, Randomness as BabeRandomness, Slot, BABE_ENGINE_ID, RANDOMNESS_LENGTH, RANDOMNESS_VRF_CONTEXT, }; -use sp_core::crypto::Wraps; +use sp_core::{crypto::Wraps, sr25519::Public}; use sp_runtime::{ generic::DigestItem, traits::{IsMember, One, SaturatedConversion, Saturating, Zero}, @@ -120,7 +120,7 @@ pub mod pallet { #[pallet::config] #[pallet::disable_frame_system_supertrait_check] - pub trait Config: pallet_timestamp::Config { + pub trait Config: pallet_timestamp::Config { /// The amount of time, in slots, that each epoch should last. /// NOTE: Currently it is not possible to change the epoch duration after /// the chain has started. Attempting to do so will brick block production.