Skip to content

Commit

Permalink
make SelfParaId a metadata constant (#3517)
Browse files Browse the repository at this point in the history
expose para id via metadata

#2116 is blocked by this
  • Loading branch information
xlc authored Mar 1, 2024
1 parent a1b57a8 commit 6f81a4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cumulus/pallets/parachain-system/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,7 @@ pub mod pallet {
type OnSystemEvent: OnSystemEvent;

/// Returns the parachain ID we are running with.
#[pallet::constant]
type SelfParaId: Get<ParaId>;

/// The place where outbound XCMP messages come from. This is queried in `finalize_block`.
Expand Down

0 comments on commit 6f81a4a

Please sign in to comment.