From f5911ba21e1b6dcf4c5048b57e47e635f7f1f89f Mon Sep 17 00:00:00 2001 From: joepetrowski Date: Tue, 22 Nov 2022 08:37:00 +0100 Subject: [PATCH 1/2] add collectives as trusted teleporter --- runtime/polkadot/src/xcm_config.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/polkadot/src/xcm_config.rs b/runtime/polkadot/src/xcm_config.rs index 846d98a59d99..9e26eab99f34 100644 --- a/runtime/polkadot/src/xcm_config.rs +++ b/runtime/polkadot/src/xcm_config.rs @@ -107,10 +107,12 @@ pub type XcmRouter = ( parameter_types! { pub const Polkadot: MultiAssetFilter = Wild(AllOf { fun: WildFungible, id: Concrete(DotLocation::get()) }); pub const PolkadotForStatemint: (MultiAssetFilter, MultiLocation) = (Polkadot::get(), Parachain(1000).into()); + pub const PolkadotForCollectives: (MultiAssetFilter, MultiLocation) = (Polkadot::get(), Parachain(1001).into()); } /// Polkadot Relay recognizes/respects the Statemint chain as a teleporter. -pub type TrustedTeleporters = (xcm_builder::Case,); +pub type TrustedTeleporters = + (xcm_builder::Case, xcm_builder::Case); match_types! { pub type OnlyParachains: impl Contains = { From e64c70367b0a7575f95b313c1f8f708e6cdb9b42 Mon Sep 17 00:00:00 2001 From: joepetrowski Date: Tue, 22 Nov 2022 08:39:14 +0100 Subject: [PATCH 2/2] fix statemint-specific doc --- runtime/polkadot/src/xcm_config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/polkadot/src/xcm_config.rs b/runtime/polkadot/src/xcm_config.rs index 9e26eab99f34..39f7a337479a 100644 --- a/runtime/polkadot/src/xcm_config.rs +++ b/runtime/polkadot/src/xcm_config.rs @@ -110,7 +110,7 @@ parameter_types! { pub const PolkadotForCollectives: (MultiAssetFilter, MultiLocation) = (Polkadot::get(), Parachain(1001).into()); } -/// Polkadot Relay recognizes/respects the Statemint chain as a teleporter. +/// Polkadot Relay recognizes/respects System parachains as teleporters. pub type TrustedTeleporters = (xcm_builder::Case, xcm_builder::Case);