diff --git a/crates/pallet-domains/src/tests.rs b/crates/pallet-domains/src/tests.rs index 2b480c775c..f85b6fb281 100644 --- a/crates/pallet-domains/src/tests.rs +++ b/crates/pallet-domains/src/tests.rs @@ -18,6 +18,7 @@ use frame_support::weights::{IdentityFee, Weight}; use frame_support::{assert_err, assert_ok, derive_impl, parameter_types, PalletId}; use frame_system::mocking::MockUncheckedExtrinsic; use frame_system::pallet_prelude::*; +use frame_system::DefaultConfig; use scale_info::TypeInfo; use sp_core::crypto::Pair; use sp_core::storage::{StateVersion, StorageKey}; @@ -76,7 +77,7 @@ type BlockNumber = u64; type Hash = H256; type AccountId = u128; -#[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)] +#[derive_impl(frame_system::config_preludes::TestDefaultConfig)] impl frame_system::Config for Test { type Block = Block; type Hash = Hash; diff --git a/crates/pallet-feeds/src/mock.rs b/crates/pallet-feeds/src/mock.rs index b66d798d6c..29fdcb882f 100644 --- a/crates/pallet-feeds/src/mock.rs +++ b/crates/pallet-feeds/src/mock.rs @@ -2,6 +2,7 @@ use crate::feed_processor::{FeedObjectMapping, FeedProcessor, FeedProcessor as F use crate::{self as pallet_feeds}; use codec::{Compact, CompactLen, Decode, Encode}; use frame_support::{derive_impl, parameter_types}; +use frame_system::DefaultConfig; use scale_info::TypeInfo; use sp_runtime::BuildStorage; @@ -15,7 +16,7 @@ frame_support::construct_runtime!( } ); -#[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)] +#[derive_impl(frame_system::config_preludes::TestDefaultConfig)] impl frame_system::Config for Test { type Block = Block; } diff --git a/crates/pallet-grandpa-finality-verifier/src/tests/mock.rs b/crates/pallet-grandpa-finality-verifier/src/tests/mock.rs index 8fb3b02c6b..6dff3c725b 100644 --- a/crates/pallet-grandpa-finality-verifier/src/tests/mock.rs +++ b/crates/pallet-grandpa-finality-verifier/src/tests/mock.rs @@ -1,5 +1,6 @@ use frame_support::weights::Weight; use frame_support::{construct_runtime, derive_impl, parameter_types}; +use frame_system::DefaultConfig; use sp_runtime::Perbill; pub(crate) type ChainId = u64; @@ -21,7 +22,7 @@ parameter_types! { pub const AvailableBlockRatio: Perbill = Perbill::one(); } -#[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)] +#[derive_impl(frame_system::config_preludes::TestDefaultConfig)] impl frame_system::Config for TestRuntime { type Block = Block; } diff --git a/crates/pallet-object-store/src/mock.rs b/crates/pallet-object-store/src/mock.rs index 268e797276..465080b2f9 100644 --- a/crates/pallet-object-store/src/mock.rs +++ b/crates/pallet-object-store/src/mock.rs @@ -1,4 +1,5 @@ use frame_support::derive_impl; +use frame_system::DefaultConfig; use sp_runtime::BuildStorage; type Block = frame_system::mocking::MockBlock; @@ -10,7 +11,7 @@ frame_support::construct_runtime!( } ); -#[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)] +#[derive_impl(frame_system::config_preludes::TestDefaultConfig)] impl frame_system::Config for Test { type Block = Block; } diff --git a/crates/pallet-offences-subspace/src/mock.rs b/crates/pallet-offences-subspace/src/mock.rs index 4720e7018b..2869360f7b 100644 --- a/crates/pallet-offences-subspace/src/mock.rs +++ b/crates/pallet-offences-subspace/src/mock.rs @@ -24,6 +24,7 @@ use codec::Encode; use frame_support::derive_impl; use frame_support::weights::constants::ParityDbWeight; use frame_support::weights::Weight; +use frame_system::DefaultConfig; use sp_consensus_subspace::offence::{self, Kind, OffenceDetails}; use sp_consensus_subspace::FarmerPublicKey; use sp_core::H256; @@ -58,7 +59,7 @@ frame_support::construct_runtime!( } ); -#[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)] +#[derive_impl(frame_system::config_preludes::TestDefaultConfig)] impl frame_system::Config for Runtime { type Block = Block; type DbWeight = ParityDbWeight; diff --git a/crates/pallet-rewards/src/mock.rs b/crates/pallet-rewards/src/mock.rs index 36778553c5..d43dfd56ba 100644 --- a/crates/pallet-rewards/src/mock.rs +++ b/crates/pallet-rewards/src/mock.rs @@ -2,6 +2,7 @@ use frame_support::derive_impl; use frame_support::traits::{ConstU128, ConstU32}; +use frame_system::DefaultConfig; use sp_runtime::traits::parameter_types; use subspace_runtime_primitives::{ FindBlockRewardAddress, FindVotingRewardAddresses, RewardsEnabled, @@ -18,7 +19,7 @@ frame_support::construct_runtime!( } ); -#[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)] +#[derive_impl(frame_system::config_preludes::TestDefaultConfig)] impl frame_system::Config for Test { type Block = Block; type AccountData = pallet_balances::AccountData; diff --git a/crates/pallet-subspace/src/mock.rs b/crates/pallet-subspace/src/mock.rs index 3a68b6f48f..980d00b079 100644 --- a/crates/pallet-subspace/src/mock.rs +++ b/crates/pallet-subspace/src/mock.rs @@ -23,6 +23,7 @@ use crate::{ }; use frame_support::traits::{ConstU128, ConstU16, OnInitialize}; use frame_support::{derive_impl, parameter_types}; +use frame_system::DefaultConfig; use futures::executor::block_on; use rand::Rng; use schnorrkel::Keypair; @@ -93,7 +94,7 @@ frame_support::construct_runtime!( } ); -#[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)] +#[derive_impl(frame_system::config_preludes::TestDefaultConfig)] impl frame_system::Config for Test { type Block = Block; type AccountData = pallet_balances::AccountData; diff --git a/domains/pallets/domain-id/src/tests.rs b/domains/pallets/domain-id/src/tests.rs index f295a17289..6d21764f4c 100644 --- a/domains/pallets/domain-id/src/tests.rs +++ b/domains/pallets/domain-id/src/tests.rs @@ -1,5 +1,6 @@ use crate::{self as pallet_domain_id}; use frame_support::derive_impl; +use frame_system::DefaultConfig; use sp_runtime::BuildStorage; type Block = frame_system::mocking::MockBlock; @@ -13,7 +14,7 @@ frame_support::construct_runtime!( impl pallet_domain_id::Config for Test {} -#[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)] +#[derive_impl(frame_system::config_preludes::TestDefaultConfig)] impl frame_system::Config for Test { type Block = Block; } diff --git a/domains/pallets/executive/src/mock.rs b/domains/pallets/executive/src/mock.rs index 41d3c50ecc..a267d05fdf 100644 --- a/domains/pallets/executive/src/mock.rs +++ b/domains/pallets/executive/src/mock.rs @@ -4,6 +4,7 @@ use frame_support::dispatch::DispatchInfo; use frame_support::weights::IdentityFee; use frame_support::{derive_impl, parameter_types}; use frame_system::mocking::MockUncheckedExtrinsic; +use frame_system::DefaultConfig; use pallet_balances::AccountData; use sp_runtime::BuildStorage; @@ -19,7 +20,7 @@ frame_support::construct_runtime!( } ); -#[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)] +#[derive_impl(frame_system::config_preludes::TestDefaultConfig)] impl frame_system::Config for MockRuntime { type Block = Block; type AccountData = AccountData; diff --git a/domains/pallets/messenger/src/mock.rs b/domains/pallets/messenger/src/mock.rs index 84835a80c9..042951fe82 100644 --- a/domains/pallets/messenger/src/mock.rs +++ b/domains/pallets/messenger/src/mock.rs @@ -30,6 +30,7 @@ macro_rules! impl_runtime { use sp_messenger::endpoint::{Endpoint, EndpointHandler, EndpointId}; use sp_messenger::messages::ChainId; use sp_runtime::traits::Convert; + use frame_system::DefaultConfig; use sp_runtime::BuildStorage; use crate::HoldIdentifier; use sp_domains::ChannelId; @@ -50,7 +51,7 @@ macro_rules! impl_runtime { } ); - #[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)] + #[derive_impl(frame_system::config_preludes::TestDefaultConfig )] impl frame_system::Config for $runtime { type Block = Block; type AccountData = AccountData; diff --git a/domains/pallets/transporter/src/mock.rs b/domains/pallets/transporter/src/mock.rs index 257a2d7636..9e6b9a9185 100644 --- a/domains/pallets/transporter/src/mock.rs +++ b/domains/pallets/transporter/src/mock.rs @@ -3,6 +3,7 @@ use crate::{Config, TryConvertBack}; use codec::{Decode, Encode}; use domain_runtime_primitives::MultiAccountId; use frame_support::{derive_impl, parameter_types}; +use frame_system::DefaultConfig; use pallet_balances::AccountData; use sp_messenger::endpoint::{EndpointId, EndpointRequest, Sender}; use sp_messenger::messages::ChainId; @@ -21,7 +22,7 @@ frame_support::construct_runtime!( } ); -#[derive_impl(frame_system::config_preludes::TestDefaultConfig as frame_system::DefaultConfig)] +#[derive_impl(frame_system::config_preludes::TestDefaultConfig)] impl frame_system::Config for MockRuntime { type Block = Block; type AccountId = AccountId;