Skip to content

Commit

Permalink
Fix weight issue (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
elfedy authored Apr 10, 2024
1 parent 9037aec commit 9c8f32b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pallets/emergency-para-xcm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>, code_hash: T::Hash) -> DispatchResult {
T::FastAuthorizeUpgradeOrigin::ensure_origin(origin)?;
ensure!(
Expand Down

0 comments on commit 9c8f32b

Please sign in to comment.