Skip to content

Commit

Permalink
get tests to compile
Browse files Browse the repository at this point in the history
Signed-off-by: Charles Ferrell <[email protected]>
  • Loading branch information
ferrell-code committed Apr 9, 2024
1 parent ee01e3e commit a1e007f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pallets/collator-selection/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ impl pallet_session::SessionHandler<u64> for TestSessionHandler {
SessionHandlerCollators::set(keys.iter().map(|(a, _)| *a).collect::<Vec<_>>())
}
fn on_new_session<Ks: OpaqueKeys>(_: bool, keys: &[(u64, Ks)], _: &[(u64, Ks)]) {
SessionChangeBlock::set(System::block_number() as u64);
SessionChangeBlock::set(System::block_number());
SessionHandlerCollators::set(keys.iter().map(|(a, _)| *a).collect::<Vec<_>>())
}
fn on_before_session_ending() {}
Expand Down
2 changes: 1 addition & 1 deletion runtime/calamari/src/migrations/sudo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use core::marker::PhantomData;
use frame_support::migration::remove_storage_prefix;
use frame_support::{
migration::have_storage_value,
pallet_prelude::Weight,
pallet_prelude::*,
traits::{Get, OnRuntimeUpgrade},
};
#[cfg(feature = "try-runtime")]
Expand Down
1 change: 1 addition & 0 deletions runtime/integration-tests/src/xcm_mock/parachain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,7 @@ impl cumulus_pallet_parachain_system::Config for Runtime {
type ReservedXcmpWeight = ReservedXcmpWeight;
type OnSystemEvent = ();
type CheckAssociatedRelayNumber = RelayNumberStrictlyIncreases;
type ConsensusHook = cumulus_pallet_parachain_system::ExpectParentIncluded;
type WeightInfo = ();
}

Expand Down

0 comments on commit a1e007f

Please sign in to comment.