Skip to content

Commit

Permalink
chore: update relay chain references (#449)
Browse files Browse the repository at this point in the history
After the move to Polkadot, Spiritnet XCM config was still referring to
Kusama as the relay chain. This should be updated now.

Co-authored-by: Albrecht <albrecht@kilt.io>
  • Loading branch information
ntn-x2 and weichweich authored Jan 20, 2023
1 parent 79ac365 commit b6b8d4d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion runtimes/common/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ parameter_types! {
}

match_types! {
// The legislative of our parent (i.e. Kusama majority vote).
// The legislative of our parent (i.e. Polkadot majority vote for Spiritnet).
pub type ParentLegislative: impl Contains<MultiLocation> = {
MultiLocation { parents: 1, interior: X1(Plurality { id: BodyId::Legislative, .. }) }
};
Expand Down
1 change: 1 addition & 0 deletions runtimes/peregrine/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ use runtime_common::xcm_config::{
parameter_types! {
pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into();
pub Ancestry: MultiLocation = Parachain(ParachainInfo::parachain_id().into()).into();
// TODO: This needs to be updated once we deploy Peregrine on Rococo
pub const RelayNetworkId: NetworkId = NetworkId::Any;
}

Expand Down
2 changes: 1 addition & 1 deletion runtimes/spiritnet/src/xcm_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ use runtime_common::xcm_config::{LocalAssetTransactor, MaxInstructions, RelayLoc
parameter_types! {
pub RelayChainOrigin: RuntimeOrigin = cumulus_pallet_xcm::Origin::Relay.into();
pub Ancestry: MultiLocation = Parachain(ParachainInfo::parachain_id().into()).into();
pub const RelayNetworkId: NetworkId = NetworkId::Kusama;
pub const RelayNetworkId: NetworkId = NetworkId::Polkadot;
}

/// This is the type we use to convert an (incoming) XCM origin into a local
Expand Down

0 comments on commit b6b8d4d

Please sign in to comment.