Skip to content

Commit

Permalink
".git/.scripts/commands/fmt/fmt.sh"
Browse files Browse the repository at this point in the history
  • Loading branch information
command-bot committed Jan 18, 2024
1 parent fa3ebd3 commit a829837
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 34 deletions.
19 changes: 9 additions & 10 deletions substrate/bin/node/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2083,8 +2083,7 @@ impl pallet_mixnet::Config for Runtime {
}

construct_runtime!(
pub struct Runtime
{
pub struct Runtime {
System: frame_system,
Utility: pallet_utility,
Babe: pallet_babe,
Expand All @@ -2106,10 +2105,10 @@ construct_runtime!(
MmrLeaf: pallet_beefy_mmr,
Session: pallet_session,
Democracy: pallet_democracy,
Council: pallet_collective::<Instance1>,
TechnicalCommittee: pallet_collective::<Instance2>,
Council: pallet_collective<Instance1>,
TechnicalCommittee: pallet_collective<Instance2>,
Elections: pallet_elections_phragmen,
TechnicalMembership: pallet_membership::<Instance1>,
TechnicalMembership: pallet_membership<Instance1>,
Grandpa: pallet_grandpa,
Treasury: pallet_treasury,
AssetRate: pallet_asset_rate,
Expand All @@ -2131,8 +2130,8 @@ construct_runtime!(
Multisig: pallet_multisig,
Bounties: pallet_bounties,
Tips: pallet_tips,
Assets: pallet_assets::<Instance1>,
PoolAssets: pallet_assets::<Instance2>,
Assets: pallet_assets<Instance1>,
PoolAssets: pallet_assets<Instance2>,
Lottery: pallet_lottery,
Nis: pallet_nis,
Uniques: pallet_uniques,
Expand All @@ -2141,18 +2140,18 @@ construct_runtime!(
Salary: pallet_salary,
CoreFellowship: pallet_core_fellowship,
TransactionStorage: pallet_transaction_storage,
VoterList: pallet_bags_list::<Instance1>,
VoterList: pallet_bags_list<Instance1>,
StateTrieMigration: pallet_state_trie_migration,
ChildBounties: pallet_child_bounties,
Referenda: pallet_referenda,
Remark: pallet_remark,
RootTesting: pallet_root_testing,
ConvictionVoting: pallet_conviction_voting,
Whitelist: pallet_whitelist,
AllianceMotion: pallet_collective::<Instance3>,
AllianceMotion: pallet_collective<Instance3>,
Alliance: pallet_alliance,
NominationPools: pallet_nomination_pools,
RankedPolls: pallet_referenda::<Instance2>,
RankedPolls: pallet_referenda<Instance2>,
RankedCollective: pallet_ranked_collective,
AssetConversion: pallet_asset_conversion,
FastUnstake: pallet_fast_unstake,
Expand Down
3 changes: 1 addition & 2 deletions substrate/frame/bags-list/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ impl bags_list::Config for Runtime {

type Block = frame_system::mocking::MockBlock<Runtime>;
frame_support::construct_runtime!(
pub struct Runtime
{
pub struct Runtime {
System: frame_system,
BagsList: bags_list,
}
Expand Down
3 changes: 1 addition & 2 deletions substrate/frame/balances/src/tests/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ impl VariantCount for TestId {
}

frame_support::construct_runtime!(
pub struct Test
{
pub struct Test {
System: frame_system,
Balances: pallet_balances,
TransactionPayment: pallet_transaction_payment,
Expand Down
3 changes: 1 addition & 2 deletions substrate/frame/election-provider-multi-phase/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,7 @@ pub type UncheckedExtrinsic =
sp_runtime::generic::UncheckedExtrinsic<AccountId, RuntimeCall, (), ()>;

frame_support::construct_runtime!(
pub struct Runtime
{
pub struct Runtime {
System: frame_system,
Balances: pallet_balances,
MultiPhase: multi_phase,
Expand Down
3 changes: 1 addition & 2 deletions substrate/frame/election-provider-support/src/onchain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,7 @@ mod tests {
pub type Block = sp_runtime::generic::Block<Header, UncheckedExtrinsic>;

frame_support::construct_runtime!(
pub struct Runtime
{
pub struct Runtime {
System: frame_system,
}
);
Expand Down
3 changes: 1 addition & 2 deletions substrate/frame/executive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -897,8 +897,7 @@ mod tests {
}

frame_support::construct_runtime!(
pub struct Runtime
{
pub struct Runtime {
System: frame_system,
Balances: pallet_balances,
TransactionPayment: pallet_transaction_payment,
Expand Down
3 changes: 1 addition & 2 deletions substrate/frame/im-online/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ use crate::Config;
type Block = frame_system::mocking::MockBlock<Runtime>;

frame_support::construct_runtime!(
pub struct Runtime
{
pub struct Runtime {
System: frame_system,
Session: pallet_session,
ImOnline: imonline,
Expand Down
5 changes: 2 additions & 3 deletions substrate/frame/nomination-pools/benchmarking/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,12 @@ impl crate::Config for Runtime {}
type Block = frame_system::mocking::MockBlock<Runtime>;

frame_support::construct_runtime!(
pub struct Runtime
{
pub struct Runtime {
System: frame_system,
Timestamp: pallet_timestamp,
Balances: pallet_balances,
Staking: pallet_staking,
VoterList: pallet_bags_list::<Instance1>,
VoterList: pallet_bags_list<Instance1>,
Pools: pallet_nomination_pools,
}
);
Expand Down
3 changes: 1 addition & 2 deletions substrate/frame/nomination-pools/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,7 @@ impl pools::Config for Runtime {

type Block = frame_system::mocking::MockBlock<Runtime>;
frame_support::construct_runtime!(
pub struct Runtime
{
pub struct Runtime {
System: frame_system,
Balances: pallet_balances,
Pools: pools,
Expand Down
5 changes: 2 additions & 3 deletions substrate/frame/nomination-pools/test-staking/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,12 @@ impl pallet_nomination_pools::Config for Runtime {
type Block = frame_system::mocking::MockBlock<Runtime>;

frame_support::construct_runtime!(
pub struct Runtime
{
pub struct Runtime {
System: frame_system,
Timestamp: pallet_timestamp,
Balances: pallet_balances,
Staking: pallet_staking,
VoterList: pallet_bags_list::<Instance1>,
VoterList: pallet_bags_list<Instance1>,
Pools: pallet_nomination_pools,
}
);
Expand Down
3 changes: 1 addition & 2 deletions substrate/frame/offences/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ pub fn with_on_offence_fractions<R, F: FnOnce(&mut Vec<Perbill>) -> R>(f: F) ->
type Block = frame_system::mocking::MockBlock<Runtime>;

frame_support::construct_runtime!(
pub struct Runtime
{
pub struct Runtime {
System: frame_system,
Offences: offences,
}
Expand Down
3 changes: 1 addition & 2 deletions substrate/frame/system/benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ mod module {
type Block = frame_system::mocking::MockBlock<Runtime>;

frame_support::construct_runtime!(
pub struct Runtime
{
pub struct Runtime {
System: frame_system,
Module: module,
}
Expand Down

0 comments on commit a829837

Please sign in to comment.