Skip to content

Commit

Permalink
Fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
elfedy committed Apr 9, 2024
1 parent 50b2f2a commit 62b9ef2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pallets/emergency-para-xcm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ use frame_support::pallet;
use frame_support::pallet_prelude::*;
use frame_support::traits::{ProcessMessage, QueuePausedQuery};
use frame_system::pallet_prelude::*;
use frame_system::RawOrigin;
use frame_system::{RawOrigin, WeightInfo};
use parity_scale_codec::{Decode, Encode};
use polkadot_parachain_primitives::primitives::{Id, RelayChainBlockNumber, XcmpMessageHandler};

Expand Down 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), DispatchClass::Operational))]
#[pallet::weight((T::SystemWeightInfo::authorize_upgrade().saturating_add(T::DbWeight::get().read.into()), 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 62b9ef2

Please sign in to comment.