Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix
  • Loading branch information
kostekIV committed Nov 24, 2022
commit 07143ad0286cfdd35a82e4520ea787c45c877b7b
18 changes: 9 additions & 9 deletions pallets/aleph/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ impl frame_system::Config for Test {
type BaseCallFilter = frame_support::traits::Everything;
type BlockWeights = ();
type BlockLength = ();
type Origin = Origin;
type Call = Call;
type RuntimeOrigin = RuntimeOrigin;
type RuntimeCall = RuntimeCall;
type Index = u64;
type BlockNumber = u64;
type Hash = H256;
type Hashing = sp_runtime::traits::BlakeTwo256;
type AccountId = AccountId;
type Lookup = IdentityLookup<Self::AccountId>;
type Header = Header;
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type BlockHashCount = BlockHashCount;
type DbWeight = TestDbWeight;
type Version = ();
Expand Down Expand Up @@ -92,15 +92,15 @@ impl pallet_balances::Config for Test {
type MaxReserves = ();
type ReserveIdentifier = [u8; 8];
type DustRemoval = ();
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
type WeightInfo = ();
type MaxLocks = ();
}

impl pallet_session::Config for Test {
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type ValidatorId = u64;
type ValidatorIdOf = ConvertInto;
type ShouldEndSession = pallet_session::PeriodicSessions<Period, Offset>;
Expand All @@ -113,10 +113,10 @@ impl pallet_session::Config for Test {

impl<C> frame_system::offchain::SendTransactionTypes<C> for Test
where
Call: From<C>,
RuntimeCall: From<C>,
{
type Extrinsic = TestXt<Call, ()>;
type OverarchingCall = Call;
type Extrinsic = TestXt<RuntimeCall, ()>;
type OverarchingCall = RuntimeCall;
}

parameter_types! {
Expand All @@ -132,7 +132,7 @@ impl pallet_timestamp::Config for Test {

impl Config for Test {
type AuthorityId = AuthorityId;
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type SessionInfoProvider = Session;
type SessionManager = ();
}
Expand Down
17 changes: 9 additions & 8 deletions pallets/elections/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ impl frame_system::Config for Test {
type BaseCallFilter = frame_support::traits::Everything;
type BlockWeights = ();
type BlockLength = ();
type Origin = Origin;
type Call = Call;
type RuntimeOrigin = RuntimeOrigin;
type RuntimeCall = RuntimeCall;
type Index = u64;
type BlockNumber = u64;
type Hash = H256;
type Hashing = sp_runtime::traits::BlakeTwo256;
type AccountId = u64;
type Lookup = IdentityLookup<Self::AccountId>;
type Header = Header;
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type BlockHashCount = BlockHashCount;
type DbWeight = TestDbWeight;
type Version = ();
Expand All @@ -84,7 +84,7 @@ impl pallet_balances::Config for Test {
type MaxReserves = ();
type ReserveIdentifier = [u8; 8];
type DustRemoval = ();
type Event = Event;
type RuntimeEvent = RuntimeEvent;
type ExistentialDeposit = ExistentialDeposit;
type AccountStore = System;
type WeightInfo = ();
Expand All @@ -93,10 +93,10 @@ impl pallet_balances::Config for Test {

impl<C> frame_system::offchain::SendTransactionTypes<C> for Test
where
Call: From<C>,
RuntimeCall: From<C>,
{
type Extrinsic = TestXt<Call, ()>;
type OverarchingCall = Call;
type Extrinsic = TestXt<RuntimeCall, ()>;
type OverarchingCall = RuntimeCall;
}

parameter_types! {
Expand Down Expand Up @@ -170,7 +170,8 @@ impl EraInfoProvider for MockProvider {

impl Config for Test {
type EraInfoProvider = MockProvider;
type Event = Event;
type RuntimeEvent = RuntimeEvent
;
type DataProvider = StakingMock;
type SessionPeriod = SessionPeriod;
type SessionManager = ();
Expand Down