Skip to content

Commit ac5ce22

Browse files
committed
nit
1 parent 00339a9 commit ac5ce22

File tree

2 files changed

+13
-13
lines changed
  • modules/pallets/bridge-drop/src
  • parachain/runtimes/nexus/src

2 files changed

+13
-13
lines changed

modules/pallets/bridge-drop/src/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,11 +347,12 @@ pub mod pallet {
347347
#[pallet::weight(<T as frame_system::Config>::DbWeight::get().reads_writes(1, 2))]
348348
pub fn set_start_block(
349349
origin: OriginFor<T>,
350-
block_number: BlockNumberFor<T>,
350+
start_block: BlockNumberFor<T>,
351351
) -> DispatchResult {
352352
T::BridgeDropOrigin::ensure_origin(origin)?;
353353

354-
StartingBlock::<T>::put(block_number);
354+
StartingBlock::<T>::put(start_block);
355+
Self::deposit_event(Event::<T>::StartBlockSet { start_block });
355356
Ok(())
356357
}
357358
}

parachain/runtimes/nexus/src/lib.rs

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -344,8 +344,8 @@ impl Contains<RuntimeCall> for IsTreasurySpend {
344344
fn contains(c: &RuntimeCall) -> bool {
345345
matches!(
346346
c,
347-
RuntimeCall::Treasury(pallet_treasury::Call::spend { .. })
348-
| RuntimeCall::Treasury(pallet_treasury::Call::spend_local { .. })
347+
RuntimeCall::Treasury(pallet_treasury::Call::spend { .. }) |
348+
RuntimeCall::Treasury(pallet_treasury::Call::spend_local { .. })
349349
)
350350
}
351351
}
@@ -815,20 +815,19 @@ impl InstanceFilter<RuntimeCall> for ProxyType {
815815
fn filter(&self, c: &RuntimeCall) -> bool {
816816
match self {
817817
ProxyType::Any => true,
818-
ProxyType::NonTransfer => {
819-
!matches!(c, RuntimeCall::Balances { .. } | RuntimeCall::Assets { .. })
820-
},
818+
ProxyType::NonTransfer =>
819+
!matches!(c, RuntimeCall::Balances { .. } | RuntimeCall::Assets { .. }),
821820
ProxyType::CancelProxy => matches!(
822821
c,
823-
RuntimeCall::Proxy(pallet_proxy::Call::reject_announcement { .. })
824-
| RuntimeCall::Utility { .. }
825-
| RuntimeCall::Multisig { .. }
822+
RuntimeCall::Proxy(pallet_proxy::Call::reject_announcement { .. }) |
823+
RuntimeCall::Utility { .. } |
824+
RuntimeCall::Multisig { .. }
826825
),
827826
ProxyType::Collator => matches!(
828827
c,
829-
RuntimeCall::CollatorSelection { .. }
830-
| RuntimeCall::Utility { .. }
831-
| RuntimeCall::Multisig { .. }
828+
RuntimeCall::CollatorSelection { .. } |
829+
RuntimeCall::Utility { .. } |
830+
RuntimeCall::Multisig { .. }
832831
),
833832
}
834833
}

0 commit comments

Comments
 (0)