From de2407a0db62c061352f1071fd1bab6cf81e12d5 Mon Sep 17 00:00:00 2001 From: Alejandro Martinez Andres <11448715+al3mart@users.noreply.github.com> Date: Tue, 5 Nov 2024 11:37:53 +0100 Subject: [PATCH] fix: add sudo weights --- system-parachains/bridge-hub-paseo/src/lib.rs | 2 +- system-parachains/coretime-paseo/src/lib.rs | 4 ++-- system-parachains/people-paseo/src/lib.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/system-parachains/bridge-hub-paseo/src/lib.rs b/system-parachains/bridge-hub-paseo/src/lib.rs index 93638dc..8f76fcb 100644 --- a/system-parachains/bridge-hub-paseo/src/lib.rs +++ b/system-parachains/bridge-hub-paseo/src/lib.rs @@ -516,7 +516,7 @@ impl pallet_utility::Config for Runtime { impl pallet_sudo::Config for Runtime { type RuntimeEvent = RuntimeEvent; type RuntimeCall = RuntimeCall; - type WeightInfo = weights::pallet_sudo::WeightInfo; + type WeightInfo = pallet_sudo::weights::SubstrateWeight; } // Create the runtime by composing the FRAME pallets that were previously configured. diff --git a/system-parachains/coretime-paseo/src/lib.rs b/system-parachains/coretime-paseo/src/lib.rs index 4602de5..3bb2737 100644 --- a/system-parachains/coretime-paseo/src/lib.rs +++ b/system-parachains/coretime-paseo/src/lib.rs @@ -600,7 +600,7 @@ impl pallet_utility::Config for Runtime { impl pallet_sudo::Config for Runtime { type RuntimeEvent = RuntimeEvent; type RuntimeCall = RuntimeCall; - type WeightInfo = weights::pallet_sudo::WeightInfo; + type WeightInfo = pallet_sudo::weights::SubstrateWeight; } // Create the runtime by composing the FRAME pallets that were previously configured. @@ -637,7 +637,7 @@ construct_runtime!( // The main stage. Broker: pallet_broker = 50, - + // Sudo. Sudo: pallet_sudo::{Pallet, Call, Storage, Event, Config} = 255, } diff --git a/system-parachains/people-paseo/src/lib.rs b/system-parachains/people-paseo/src/lib.rs index 5c6b5ae..1c02e1a 100644 --- a/system-parachains/people-paseo/src/lib.rs +++ b/system-parachains/people-paseo/src/lib.rs @@ -535,7 +535,7 @@ impl pallet_utility::Config for Runtime { impl pallet_sudo::Config for Runtime { type RuntimeEvent = RuntimeEvent; type RuntimeCall = RuntimeCall; - type WeightInfo = weights::pallet_sudo::WeightInfo; + type WeightInfo = pallet_sudo::weights::SubstrateWeight; } // Create the runtime by composing the FRAME pallets that were previously configured.