From e343d47e121e92af0a3b2296dbd9100907a3f842 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Drwi=C4=99ga?= Date: Mon, 22 Mar 2021 16:32:26 +0100 Subject: [PATCH] Bump substrate. (#123) * Bump substrate. * Fix tests. --- frame/beefy/src/lib.rs | 10 +++++----- frame/beefy/src/mock.rs | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/frame/beefy/src/lib.rs b/frame/beefy/src/lib.rs index 68bfffdeacf87..50748e9b325cc 100644 --- a/frame/beefy/src/lib.rs +++ b/frame/beefy/src/lib.rs @@ -121,7 +121,7 @@ impl Pallet { }) .encode(), ); - >::deposit_log(log); + >::deposit_log(log); } >::put(&queued); @@ -144,11 +144,11 @@ impl Pallet { } } -impl sp_runtime::BoundToRuntimeAppPublic for Module { +impl sp_runtime::BoundToRuntimeAppPublic for Pallet { type Public = T::AuthorityId; } -impl OneSessionHandler for Module { +impl OneSessionHandler for Pallet { type Key = T::AuthorityId; fn on_genesis_session<'a, I: 'a>(validators: I) @@ -177,11 +177,11 @@ impl OneSessionHandler for Module { ConsensusLog::::OnDisabled(i as AuthorityIndex).encode(), ); - >::deposit_log(log); + >::deposit_log(log); } } -impl IsMember for Module { +impl IsMember for Pallet { fn is_member(authority_id: &T::AuthorityId) -> bool { Self::authorities().iter().any(|id| id == authority_id) } diff --git a/frame/beefy/src/mock.rs b/frame/beefy/src/mock.rs index 408e6a556bedc..94175c336cb1c 100644 --- a/frame/beefy/src/mock.rs +++ b/frame/beefy/src/mock.rs @@ -35,7 +35,7 @@ pub use beefy_primitives::{ecdsa::AuthorityId as BeefyId, ConsensusLog, BEEFY_EN impl_opaque_keys! { pub struct MockSessionKeys { - pub dummy: pallet_beefy::Module, + pub dummy: pallet_beefy::Pallet, } } @@ -48,9 +48,9 @@ construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic, { - System: frame_system::{Module, Call, Config, Storage, Event}, - Beefy: pallet_beefy::{Module, Call, Config, Storage}, - Session: pallet_session::{Module, Call, Storage, Event, Config}, + System: frame_system::{Pallet, Call, Config, Storage, Event}, + Beefy: pallet_beefy::{Pallet, Call, Config, Storage}, + Session: pallet_session::{Pallet, Call, Storage, Event, Config}, } ); @@ -151,7 +151,7 @@ pub fn new_test_ext_raw_authorities(authorities: Vec<(u64, BeefyId)>) -> TestExt BasicExternalities::execute_with_storage(&mut t, || { for (ref id, ..) in &session_keys { - frame_system::Module::::inc_providers(id); + frame_system::Pallet::::inc_providers(id); } });