From 354f1ee61ae3183cac298b42599a31ee16458efe Mon Sep 17 00:00:00 2001 From: Shamil Gadelshin Date: Fri, 19 Dec 2025 15:16:57 +0300 Subject: [PATCH 1/3] Set default weights for system pallets. --- runtime/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 52746675f9..6c2798c97f 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -340,7 +340,7 @@ impl frame_system::Config for Runtime { // The data to be stored in an account. type AccountData = pallet_balances::AccountData; // Weight information for the extrinsics of this pallet. - type SystemWeightInfo = (); + type SystemWeightInfo = frame_system::weights::SubstrateWeight; // This is used as an identifier of the chain. 42 is the generic substrate prefix. type SS58Prefix = SS58Prefix; // The set code logic, just the default since we're not a parachain. @@ -353,7 +353,7 @@ impl frame_system::Config for Runtime { type PreInherents = (); type PostInherents = (); type PostTransactions = (); - type ExtensionsWeightInfo = (); + type ExtensionsWeightInfo = (); // frame_system exports only default extension weights } impl pallet_insecure_randomness_collective_flip::Config for Runtime {} @@ -371,7 +371,7 @@ impl pallet_grandpa::Config for Runtime { type KeyOwnerProof = sp_core::Void; - type WeightInfo = (); + type WeightInfo = (); // pallet_grandpa exports only default implementation type MaxAuthorities = ConstU32<32>; type MaxSetIdSessionEntries = ConstU64<0>; type MaxNominators = ConstU32<20>; @@ -409,7 +409,7 @@ impl pallet_timestamp::Config for Runtime { type Moment = u64; type OnTimestampSet = Aura; type MinimumPeriod = ConstU64<{ SLOT_DURATION / 2 }>; - type WeightInfo = (); + type WeightInfo = pallet_timestamp::weights::SubstrateWeight; } impl pallet_utility::Config for Runtime { From face3f4dc3381722e31761f77d4da9196ed67bae Mon Sep 17 00:00:00 2001 From: Shamil Gadelshin Date: Fri, 19 Dec 2025 15:44:14 +0300 Subject: [PATCH 2/3] Bump spec version --- runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 6c2798c97f..98fab814ba 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -241,7 +241,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { // `spec_version`, and `authoring_version` are the same between Wasm and native. // This value is set to 100 to notify Polkadot-JS App (https://polkadot.js.org/apps) to use // the compatible custom types. - spec_version: 365, + spec_version: 366, impl_version: 1, apis: RUNTIME_API_VERSIONS, transaction_version: 1, From 94a4f4104554fb23f1cd6a27096897f2c5fecd22 Mon Sep 17 00:00:00 2001 From: Loris Moulin Date: Fri, 19 Dec 2025 16:11:48 +0100 Subject: [PATCH 3/3] add frame_system extensions weight info --- runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 98fab814ba..22d7e84ea6 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -353,7 +353,7 @@ impl frame_system::Config for Runtime { type PreInherents = (); type PostInherents = (); type PostTransactions = (); - type ExtensionsWeightInfo = (); // frame_system exports only default extension weights + type ExtensionsWeightInfo = frame_system::SubstrateExtensionsWeight; } impl pallet_insecure_randomness_collective_flip::Config for Runtime {}