-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix ParentOrSiblings #2428
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix ParentOrSiblings #2428
Changes from all commits
61c0044
7bb402c
aac4a4f
43af618
cc7e12a
e8fc1a6
8989143
cefd41a
cfd65bf
1fe5390
6447742
c40f54a
4208876
7d2c098
56675fc
e48ac65
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,7 +34,8 @@ use pallet_xcm::XcmPassthrough; | |
| use parachains_common::{ | ||
| impls::ToStakingPot, | ||
| xcm_config::{ | ||
| AllSiblingSystemParachains, ConcreteAssetFromSystem, RelayOrOtherSystemParachains, | ||
| AllSiblingSystemParachains, ConcreteAssetFromSystem, ParentRelayOrSiblingParachains, | ||
| RelayOrOtherSystemParachains, | ||
| }, | ||
| TREASURY_PALLET_ID, | ||
| }; | ||
|
|
@@ -126,10 +127,6 @@ match_types! { | |
| MultiLocation { parents: 1, interior: Here } | | ||
| MultiLocation { parents: 1, interior: X1(Plurality { .. }) } | ||
| }; | ||
| pub type ParentOrSiblings: impl Contains<MultiLocation> = { | ||
| MultiLocation { parents: 1, interior: Here } | | ||
| MultiLocation { parents: 1, interior: X1(_) } | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not an XCM expert, but what does a sibling "anything" here include other than parachains in practice? Accounts?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, it could be anything in the parent, so not really a sibling. Accounts in the parent, pallets, governance bodies, for example. |
||
| }; | ||
| } | ||
|
|
||
| /// A call filter for the XCM Transact instruction. This is a temporary measure until we properly | ||
|
|
@@ -212,7 +209,7 @@ pub type Barrier = TrailingSetTopicAsId< | |
| Equals<RelayTreasuryLocation>, | ||
| )>, | ||
| // Subscriptions for version tracking are OK. | ||
| AllowSubscriptionsFrom<ParentOrSiblings>, | ||
| AllowSubscriptionsFrom<ParentRelayOrSiblingParachains>, | ||
| ), | ||
| UniversalLocation, | ||
| ConstU32<8>, | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.