parachain-system: Do not take self for last_relay_block_number (#2720)

FRAME DSL is working in a static context.
This commit is contained in:
Bastian Köcher
2023-12-15 11:29:57 +01:00
committed by GitHub
parent 99df39194d
commit ce1c9a44a7
+1 -1
View File
@@ -1630,7 +1630,7 @@ impl<T: Config> Pallet<T> {
/// Get the relay chain block number which was used as an anchor for the last block in this /// Get the relay chain block number which was used as an anchor for the last block in this
/// chain. /// chain.
pub fn last_relay_block_number(&self) -> RelayChainBlockNumber { pub fn last_relay_block_number() -> RelayChainBlockNumber {
LastRelayChainBlockNumber::<T>::get() LastRelayChainBlockNumber::<T>::get()
} }
} }