Skip to content

Commit 7b9cf81

Browse files
Set default weights for system pallets.
1 parent d9f43e1 commit 7b9cf81

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

runtime/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ impl frame_system::Config for Runtime {
338338
// The data to be stored in an account.
339339
type AccountData = pallet_balances::AccountData<Balance>;
340340
// Weight information for the extrinsics of this pallet.
341-
type SystemWeightInfo = ();
341+
type SystemWeightInfo = frame_system::weights::SubstrateWeight<Runtime>;
342342
// This is used as an identifier of the chain. 42 is the generic substrate prefix.
343343
type SS58Prefix = SS58Prefix;
344344
// The set code logic, just the default since we're not a parachain.
@@ -351,7 +351,7 @@ impl frame_system::Config for Runtime {
351351
type PreInherents = ();
352352
type PostInherents = ();
353353
type PostTransactions = ();
354-
type ExtensionsWeightInfo = ();
354+
type ExtensionsWeightInfo = (); // frame_system exports only default extension weights
355355
}
356356

357357
impl pallet_insecure_randomness_collective_flip::Config for Runtime {}
@@ -369,7 +369,7 @@ impl pallet_grandpa::Config for Runtime {
369369

370370
type KeyOwnerProof = sp_core::Void;
371371

372-
type WeightInfo = ();
372+
type WeightInfo = (); // pallet_grandpa exports only default implementation
373373
type MaxAuthorities = ConstU32<32>;
374374
type MaxSetIdSessionEntries = ConstU64<0>;
375375
type MaxNominators = ConstU32<20>;
@@ -407,7 +407,7 @@ impl pallet_timestamp::Config for Runtime {
407407
type Moment = u64;
408408
type OnTimestampSet = Aura;
409409
type MinimumPeriod = ConstU64<{ SLOT_DURATION / 2 }>;
410-
type WeightInfo = ();
410+
type WeightInfo = pallet_timestamp::weights::SubstrateWeight<Runtime>;
411411
}
412412

413413
impl pallet_utility::Config for Runtime {

0 commit comments

Comments
 (0)