Skip to content

Commit

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

paritytech#2116 is blocked by this
  • Loading branch information
xlc authored and skunert committed Mar 4, 2024
1 parent 7707097 commit be3e001
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 be3e001

Please sign in to comment.