diff --git a/auction/src/mock.rs b/auction/src/mock.rs index ca866d66d..ab409e6f0 100644 --- a/auction/src/mock.rs +++ b/auction/src/mock.rs @@ -77,8 +77,8 @@ impl Config for Runtime { type WeightInfo = (); } -pub type Block = sp_runtime::generic::Block; -pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic; +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; +type Block = frame_system::mocking::MockBlock; construct_runtime!( pub enum Runtime where diff --git a/authority/src/mock.rs b/authority/src/mock.rs index 2549a66b2..a3f6fa02d 100644 --- a/authority/src/mock.rs +++ b/authority/src/mock.rs @@ -153,8 +153,8 @@ impl Config for Runtime { type WeightInfo = (); } -pub type Block = sp_runtime::generic::Block; -pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic; +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; +type Block = frame_system::mocking::MockBlock; frame_support::construct_runtime!( pub enum Runtime where @@ -162,7 +162,7 @@ frame_support::construct_runtime!( NodeBlock = Block, UncheckedExtrinsic = UncheckedExtrinsic { - System: frame_system::{Module, Call, Event}, + System: frame_system::{Module, Call, Config, Event}, Authority: authority::{Module, Call, Origin, Event}, Scheduler: pallet_scheduler::{Module, Call, Storage, Event}, } diff --git a/currencies/src/mock.rs b/currencies/src/mock.rs index 364060d1f..97f3b40c1 100644 --- a/currencies/src/mock.rs +++ b/currencies/src/mock.rs @@ -3,7 +3,7 @@ #![cfg(test)] use super::*; -use frame_support::{construct_runtime, parameter_types, traits::GenesisBuild}; +use frame_support::{construct_runtime, parameter_types}; use orml_traits::parameter_type_with_key; use sp_core::H256; use sp_runtime::{ @@ -98,8 +98,8 @@ impl Config for Runtime { pub type NativeCurrency = NativeCurrencyOf; pub type AdaptedBasicCurrency = BasicCurrencyAdapter; -pub type Block = sp_runtime::generic::Block; -pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic; +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; +type Block = frame_system::mocking::MockBlock; construct_runtime!( pub enum Runtime where @@ -111,7 +111,6 @@ construct_runtime!( Currencies: currencies::{Module, Call, Event}, Tokens: orml_tokens::{Module, Storage, Event, Config}, PalletBalances: pallet_balances::{Module, Call, Storage, Config, Event}, - } ); diff --git a/gradually-update/src/mock.rs b/gradually-update/src/mock.rs index a3440ebb5..981492564 100644 --- a/gradually-update/src/mock.rs +++ b/gradually-update/src/mock.rs @@ -52,8 +52,8 @@ impl Config for Runtime { type WeightInfo = (); } -pub type Block = sp_runtime::generic::Block; -pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic; +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; +type Block = frame_system::mocking::MockBlock; construct_runtime!( pub enum Runtime where diff --git a/nft/src/mock.rs b/nft/src/mock.rs index 31180ff33..a8d1dae2a 100644 --- a/nft/src/mock.rs +++ b/nft/src/mock.rs @@ -49,8 +49,8 @@ impl Config for Runtime { type TokenData = (); } -pub type Block = sp_runtime::generic::Block; -pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic; +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; +type Block = frame_system::mocking::MockBlock; construct_runtime!( pub enum Runtime where @@ -60,7 +60,6 @@ construct_runtime!( { System: frame_system::{Module, Call, Storage, Config, Event}, NonFungibleTokenModule: nft::{Module, Storage, Config}, - } ); diff --git a/oracle/src/mock.rs b/oracle/src/mock.rs index d1564d0f0..b0173ac2b 100644 --- a/oracle/src/mock.rs +++ b/oracle/src/mock.rs @@ -2,7 +2,7 @@ use super::*; -use frame_support::{construct_runtime, parameter_types, traits::GenesisBuild}; +use frame_support::{construct_runtime, parameter_types}; use sp_core::H256; use sp_runtime::{ testing::Header, @@ -83,8 +83,8 @@ impl Config for Test { type WeightInfo = (); } -pub type Block = sp_runtime::generic::Block; -pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic; +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; +type Block = frame_system::mocking::MockBlock; construct_runtime!( pub enum Test where @@ -94,7 +94,6 @@ construct_runtime!( { System: frame_system::{Module, Call, Storage, Config, Event}, ModuleOracle: oracle::{Module, Storage, Call, Config, Event}, - } ); diff --git a/rewards/src/mock.rs b/rewards/src/mock.rs index f4bc36bd2..5838f30bc 100644 --- a/rewards/src/mock.rs +++ b/rewards/src/mock.rs @@ -109,8 +109,8 @@ impl Config for Runtime { type WeightInfo = (); } -pub type Block = sp_runtime::generic::Block; -pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic; +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; +type Block = frame_system::mocking::MockBlock; construct_runtime!( pub enum Runtime where @@ -120,7 +120,6 @@ construct_runtime!( { System: frame_system::{Module, Call, Storage, Config, Event}, RewardsModule: rewards::{Module, Storage, Call}, - } ); diff --git a/tokens/src/mock.rs b/tokens/src/mock.rs index d1bc52d9c..a46a04667 100644 --- a/tokens/src/mock.rs +++ b/tokens/src/mock.rs @@ -5,7 +5,7 @@ use super::*; use frame_support::{ construct_runtime, parameter_types, - traits::{ChangeMembers, Contains, ContainsLengthBound, GenesisBuild, SaturatingCurrencyToVote}, + traits::{ChangeMembers, Contains, ContainsLengthBound, SaturatingCurrencyToVote}, }; use orml_traits::parameter_type_with_key; use sp_core::H256; @@ -217,8 +217,8 @@ impl Config for Runtime { } pub type TreasuryCurrencyAdapter = ::Currency; -pub type Block = sp_runtime::generic::Block; -pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic; +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; +type Block = frame_system::mocking::MockBlock; construct_runtime!( pub enum Runtime where diff --git a/vesting/src/mock.rs b/vesting/src/mock.rs index 22910aa4b..7274ef9c7 100644 --- a/vesting/src/mock.rs +++ b/vesting/src/mock.rs @@ -3,10 +3,7 @@ #![cfg(test)] use super::*; -use frame_support::{ - construct_runtime, parameter_types, - traits::{EnsureOrigin, GenesisBuild}, -}; +use frame_support::{construct_runtime, parameter_types, traits::EnsureOrigin}; use frame_system::RawOrigin; use sp_core::H256; use sp_runtime::{testing::Header, traits::IdentityLookup}; @@ -86,8 +83,8 @@ impl Config for Runtime { type WeightInfo = (); } -pub type Block = sp_runtime::generic::Block; -pub type UncheckedExtrinsic = sp_runtime::generic::UncheckedExtrinsic; +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; +type Block = frame_system::mocking::MockBlock; construct_runtime!( pub enum Runtime where