Skip to content

Commit

Permalink
parachain-system: Do not take self for last_relay_block_number (#…
Browse files Browse the repository at this point in the history
…2720)

FRAME DSL is working in a static context.
  • Loading branch information
bkchr authored Dec 15, 2023
1 parent 99df391 commit ce1c9a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cumulus/pallets/parachain-system/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
/// chain.
pub fn last_relay_block_number(&self) -> RelayChainBlockNumber {
pub fn last_relay_block_number() -> RelayChainBlockNumber {
LastRelayChainBlockNumber::<T>::get()
}
}
Expand Down

0 comments on commit ce1c9a4

Please sign in to comment.