mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 20:21:06 +00:00
Parachains shared.rs to Frame V2 (#3425)
* gotta migrate them all * migrate rococo construct_runtime * trigger ci * fix warnings * get mocks to work * add pallet to test runtime * comments * calm down mr tabrizi lol
This commit is contained in:
@@ -65,6 +65,7 @@ frame_support::construct_runtime!(
|
||||
// Parachains Runtime
|
||||
Configuration: configuration::{Pallet, Call, Storage, Config<T>},
|
||||
Paras: paras::{Pallet, Origin, Call, Storage, Event, Config},
|
||||
ParasShared: shared::{Pallet, Call, Storage},
|
||||
|
||||
// Para Onboarding Pallets
|
||||
Registrar: paras_registrar::{Pallet, Call, Storage, Event<T>},
|
||||
@@ -251,8 +252,8 @@ const BLOCKS_PER_SESSION: u32 = 10;
|
||||
|
||||
fn maybe_new_session(n: u32) {
|
||||
if n % BLOCKS_PER_SESSION == 0 {
|
||||
shared::Module::<Test>::set_session_index(
|
||||
shared::Module::<Test>::session_index() + 1
|
||||
shared::Pallet::<Test>::set_session_index(
|
||||
shared::Pallet::<Test>::session_index() + 1
|
||||
);
|
||||
Paras::test_on_new_session();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user