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

Commit

Permalink
Bump substrate. (#123)
Browse files Browse the repository at this point in the history
* Bump substrate.

* Fix tests.
  • Loading branch information
tomusdrw authored Mar 22, 2021
1 parent c010f95 commit e343d47
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions frame/beefy/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl<T: Config> Pallet<T> {
})
.encode(),
);
<frame_system::Module<T>>::deposit_log(log);
<frame_system::Pallet<T>>::deposit_log(log);
}

<NextAuthorities<T>>::put(&queued);
Expand All @@ -144,11 +144,11 @@ impl<T: Config> Pallet<T> {
}
}

impl<T: Config> sp_runtime::BoundToRuntimeAppPublic for Module<T> {
impl<T: Config> sp_runtime::BoundToRuntimeAppPublic for Pallet<T> {
type Public = T::AuthorityId;
}

impl<T: Config> OneSessionHandler<T::AccountId> for Module<T> {
impl<T: Config> OneSessionHandler<T::AccountId> for Pallet<T> {
type Key = T::AuthorityId;

fn on_genesis_session<'a, I: 'a>(validators: I)
Expand Down Expand Up @@ -177,11 +177,11 @@ impl<T: Config> OneSessionHandler<T::AccountId> for Module<T> {
ConsensusLog::<T::AuthorityId>::OnDisabled(i as AuthorityIndex).encode(),
);

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

impl<T: Config> IsMember<T::AuthorityId> for Module<T> {
impl<T: Config> IsMember<T::AuthorityId> for Pallet<T> {
fn is_member(authority_id: &T::AuthorityId) -> bool {
Self::authorities().iter().any(|id| id == authority_id)
}
Expand Down
10 changes: 5 additions & 5 deletions frame/beefy/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Test>,
pub dummy: pallet_beefy::Pallet<Test>,
}
}

Expand All @@ -48,9 +48,9 @@ construct_runtime!(
NodeBlock = Block,
UncheckedExtrinsic = UncheckedExtrinsic,
{
System: frame_system::{Module, Call, Config, Storage, Event<T>},
Beefy: pallet_beefy::{Module, Call, Config<T>, Storage},
Session: pallet_session::{Module, Call, Storage, Event, Config<T>},
System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
Beefy: pallet_beefy::{Pallet, Call, Config<T>, Storage},
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>},
}
);

Expand Down Expand Up @@ -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::<Test>::inc_providers(id);
frame_system::Pallet::<Test>::inc_providers(id);
}
});

Expand Down

0 comments on commit e343d47

Please sign in to comment.