Skip to content

Commit c1c8839

Browse files
Updated pallet config definitios, to set the weight info to the one defined in the own pallet.
1 parent 2524f70 commit c1c8839

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

runtime/src/lib.rs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ impl pallet_transaction_payment::Config for Runtime {
370370
impl pallet_sudo::Config for Runtime {
371371
type RuntimeEvent = RuntimeEvent;
372372
type RuntimeCall = RuntimeCall;
373-
type WeightInfo = ();
373+
type WeightInfo = pallet_sudo::weights::SubstrateWeight<Runtime>;
374374
}
375375

376376
parameter_types! {
@@ -402,7 +402,7 @@ impl cumulus_pallet_xcmp_queue::Config for Runtime {
402402
type ExecuteOverweightOrigin = EnsureRoot<AccountId>;
403403
type ControllerOrigin = EnsureRoot<AccountId>;
404404
type ControllerOriginConverter = XcmOriginToTransactDispatchOrigin;
405-
type WeightInfo = ();
405+
type WeightInfo = cumulus_pallet_xcmp_queue::weights::SubstrateWeight<Runtime>;
406406
type PriceForSiblingDelivery = ();
407407
}
408408

@@ -428,7 +428,7 @@ impl pallet_session::Config for Runtime {
428428
// Essentially just Aura, but let's be pedantic.
429429
type SessionHandler = <SessionKeys as sp_runtime::traits::OpaqueKeys>::KeyTypeIdProviders;
430430
type Keys = SessionKeys;
431-
type WeightInfo = ();
431+
type WeightInfo = pallet_session::weights::SubstrateWeight<Runtime>;
432432
}
433433

434434
impl pallet_aura::Config for Runtime {
@@ -463,7 +463,7 @@ impl pallet_collator_selection::Config for Runtime {
463463
type ValidatorId = <Self as frame_system::Config>::AccountId;
464464
type ValidatorIdOf = pallet_collator_selection::IdentityCollator;
465465
type ValidatorRegistration = Session;
466-
type WeightInfo = ();
466+
type WeightInfo = pallet_collator_selection::weights::SubstrateWeight<Runtime>;
467467
}
468468

469469

@@ -528,7 +528,7 @@ impl pallet_treasury::Config for Runtime {
528528
type Burn = Burn;
529529
type BurnDestination = Treasury;
530530
type MaxApprovals = MaxApprovals;
531-
type WeightInfo = ();
531+
type WeightInfo = pallet_treasury::weights::SubstrateWeight<Runtime>;
532532
type SpendFunds = Bounties;
533533
}
534534

@@ -541,7 +541,7 @@ impl pallet_child_bounties::Config for Runtime {
541541
type RuntimeEvent = RuntimeEvent;
542542
type MaxActiveChildBountyCount = ConstU32<200>;
543543
type ChildBountyValueMinimum = ChildBountyValueMinimum;
544-
type WeightInfo = ();
544+
type WeightInfo = pallet_child_bounties::weights::SubstrateWeight<Runtime>;
545545
}
546546

547547
parameter_types! {
@@ -569,7 +569,7 @@ impl pallet_assets::Config for Runtime {
569569
type StringLimit = StringLimit;
570570
type Freezer = ();
571571
type Extra = ();
572-
type WeightInfo = ();
572+
type WeightInfo = pallet_assets::weights::SubstrateWeight<Runtime>;
573573
type RemoveItemsLimit = RemoveItemsLimit;
574574
type CallbackHandle = ();
575575
}
@@ -591,7 +591,7 @@ impl pallet_collective::Config<CouncilCollective> for Runtime {
591591
type MaxProposals = CouncilMaxProposals;
592592
type MaxMembers = CouncilMaxMembers;
593593
type DefaultVote = pallet_collective::PrimeDefaultVote;
594-
type WeightInfo = ();
594+
type WeightInfo = pallet_collective::weights::SubstrateWeight<Runtime>;
595595
type SetMembersOrigin = EnsureRoot<AccountId>;
596596
type MaxProposalWeight = ();
597597
}
@@ -622,7 +622,7 @@ impl pallet_society::Config for Runtime {
622622
type ChallengePeriod = ChallengePeriod;
623623
type MaxPayouts = ConstU32<5>;
624624
type MaxBids = ConstU32<3>;
625-
type WeightInfo = ();
625+
type WeightInfo = pallet_society::weights::SubstrateWeight<Runtime>;
626626

627627
}
628628

@@ -648,7 +648,7 @@ impl pallet_identity::Config for Runtime {
648648
type Slashed = Treasury;
649649
type ForceOrigin = EnsureRoot<AccountId>;
650650
type RegistrarOrigin = EnsureRoot<AccountId>;
651-
type WeightInfo = ();
651+
type WeightInfo = pallet_identity::weights::SubstrateWeight<Runtime>;
652652
}
653653

654654
parameter_types! {
@@ -678,7 +678,7 @@ impl pallet_indices::Config for Runtime {
678678
type Currency = Balances;
679679
type Deposit = IndexDeposit;
680680
type RuntimeEvent = RuntimeEvent;
681-
type WeightInfo = ();
681+
type WeightInfo = pallet_indices::weights::SubstrateWeight<Runtime>;
682682
}
683683

684684
parameter_types! {
@@ -695,7 +695,7 @@ impl pallet_membership::Config for Runtime {
695695
type MembershipInitialized = Council;
696696
type MembershipChanged = Council;
697697
type MaxMembers = MembershipMaxMembers;
698-
type WeightInfo = ();
698+
type WeightInfo = pallet_membership::weights::SubstrateWeight<Runtime>;
699699
}
700700

701701
parameter_types! {

0 commit comments

Comments
 (0)