Skip to content

Commit

Permalink
more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathy-bajo committed Jan 21, 2025
1 parent 87c5db6 commit 39d868d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion substrate/frame/offences/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ std = [
]
runtime-benchmarks = [
"pallet-balances/runtime-benchmarks",
"frame/runtime-benchmarks"
"frame/runtime-benchmarks",
]
try-runtime = [
"pallet-balances/try-runtime",
Expand Down
12 changes: 6 additions & 6 deletions substrate/frame/offences/benchmarking/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ impl pallet_session::SessionHandler<AccountId> for TestSessionHandler {
// corresponds to the opaque key id above
const KEY_TYPE_IDS: &'static [KeyTypeId] = &[KeyTypeId([100u8, 117u8, 109u8, 121u8])];

fn on_genesis_session<Ks: sp_runtime::traits::OpaqueKeys>(_validators: &[(AccountId, Ks)]) {}
fn on_genesis_session<Ks: OpaqueKeys>(_validators: &[(AccountId, Ks)]) {}

fn on_new_session<Ks: sp_runtime::traits::OpaqueKeys>(
fn on_new_session<Ks: OpaqueKeys>(
_: bool,
_: &[(AccountId, Ks)],
_: &[(AccountId, Ks)],
Expand Down Expand Up @@ -169,8 +169,8 @@ where

impl crate::Config for Test {}

pub type Block = sp_runtime::generic::Block<Header, UncheckedExtrinsic>;
pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic<u32, RuntimeCall, u64, ()>;
pub type Block = Block<Header, UncheckedExtrinsic>;
pub type UncheckedExtrinsic = UncheckedExtrinsic<u32, RuntimeCall, u64, ()>;

construct_runtime!(
pub enum Test
Expand All @@ -185,7 +185,7 @@ construct_runtime!(
}
);

pub fn new_test_ext() -> TestExternalities {
pub fn new_test_ext() -> TestState {
let t = frame_system::GenesisConfig::<Test>::default().build_storage().unwrap();
TestExternalities::new(t)
TestState::new(t)
}

0 comments on commit 39d868d

Please sign in to comment.