Skip to content

Commit

Permalink
style: format
Browse files Browse the repository at this point in the history
  • Loading branch information
evilrobot-01 committed Mar 10, 2024
1 parent f11578e commit b367e5e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions runtime/src/extensions.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use cumulus_primitives_core::relay_chain::BlockNumber;
use cumulus_pallet_parachain_system::RelaychainDataProvider;
use cumulus_primitives_core::relay_chain::BlockNumber;
use frame_support::{
dispatch::{GetDispatchInfo, RawOrigin},
pallet_prelude::*,
Expand All @@ -14,7 +14,10 @@ use pop_api_primitives::{
CollectionId, ItemId,
};
use sp_core::crypto::UncheckedFrom;
use sp_runtime::{traits::{BlockNumberProvider, Dispatchable}, DispatchError};
use sp_runtime::{
traits::{BlockNumberProvider, Dispatchable},
DispatchError,
};
use sp_std::{boxed::Box, vec::Vec};
use xcm::{
latest::{prelude::*, OriginKind::SovereignAccount},
Expand Down Expand Up @@ -210,7 +213,8 @@ where
RuntimeStateKeys::ParachainSystem(key) => match key {
ParachainSystemKeys::LastRelayChainBlockNumber => {
env.charge_weight(T::DbWeight::get().reads(1_u64))?;
let relay_block_num: BlockNumber = RelaychainDataProvider::<T>::current_block_number();
let relay_block_num: BlockNumber =
RelaychainDataProvider::<T>::current_block_number();
log::debug!(
target:LOG_TARGET,
"{} last relay chain block number is: {:?}.", LOG_PREFIX, relay_block_num
Expand Down

0 comments on commit b367e5e

Please sign in to comment.