From 9c8f32bd84fa89cf84296902779d93bf64fb79bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Federico=20Rodr=C3=ADguez?= Date: Wed, 10 Apr 2024 04:04:03 -0300 Subject: [PATCH] Fix weight issue (#37) --- pallets/emergency-para-xcm/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pallets/emergency-para-xcm/src/lib.rs b/pallets/emergency-para-xcm/src/lib.rs index b1addbb3..94dd637c 100644 --- a/pallets/emergency-para-xcm/src/lib.rs +++ b/pallets/emergency-para-xcm/src/lib.rs @@ -156,7 +156,7 @@ pub mod pallet { /// Authorize a runtime upgrade. Only callable in `Paused` mode #[pallet::call_index(1)] - #[pallet::weight((T::SystemWeightInfo::authorize_upgrade().saturating_add(T::DbWeight::get().read.into()), DispatchClass::Operational))] + #[pallet::weight((T::SystemWeightInfo::authorize_upgrade().saturating_add(T::DbWeight::get().reads(1_u64)), DispatchClass::Operational))] pub fn fast_authorize_upgrade(origin: OriginFor, code_hash: T::Hash) -> DispatchResult { T::FastAuthorizeUpgradeOrigin::ensure_origin(origin)?; ensure!(