Skip to content
Snippets Groups Projects
Unverified Commit 92d0fe5e authored by bgallois's avatar bgallois
Browse files

fix #194

parent f00d03f1
No related branches found
No related tags found
1 merge request!245Fix #194 session indexing error
Pipeline #36172 passed
......@@ -24,11 +24,13 @@ use pallet_smith_members::SmithRemovalReason;
pub struct OnNewSessionHandler<Runtime>(core::marker::PhantomData<Runtime>);
impl<Runtime> pallet_authority_members::traits::OnNewSession for OnNewSessionHandler<Runtime>
where
Runtime: pallet_provide_randomness::Config + pallet_distance::Config,
Runtime:
pallet_provide_randomness::Config + pallet_distance::Config + pallet_smith_members::Config,
{
fn on_new_session(index: sp_staking::SessionIndex) {
pallet_provide_randomness::Pallet::<Runtime>::on_new_epoch();
pallet_distance::Pallet::<Runtime>::on_new_session(index);
pallet_smith_members::Pallet::<Runtime>::on_new_session(index);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment