Skip to content

Commit

Permalink
Fix ParentOrSiblings
Browse files Browse the repository at this point in the history
  • Loading branch information
franciscoaguirre committed Nov 23, 2023
1 parent 1dc04eb commit 7ca4725
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ match_types! {
};
pub type ParentOrSiblings: impl Contains<MultiLocation> = {
MultiLocation { parents: 1, interior: Here } |
MultiLocation { parents: 1, interior: X1(_) }
MultiLocation { parents: 1, interior: X1(Parachain(_)) }
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ match_types! {
};
pub type ParentOrSiblings: impl Contains<MultiLocation> = {
MultiLocation { parents: 1, interior: Here } |
MultiLocation { parents: 1, interior: X1(_) }
MultiLocation { parents: 1, interior: X1(Parachain(_)) }
};
pub type FellowsPlurality: impl Contains<MultiLocation> = {
MultiLocation { parents: 1, interior: X2(Parachain(1001), Plurality { id: BodyId::Technical, ..}) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ match_types! {
};
pub type ParentOrSiblings: impl Contains<MultiLocation> = {
MultiLocation { parents: 1, interior: Here } |
MultiLocation { parents: 1, interior: X1(_) }
MultiLocation { parents: 1, interior: X1(Parachain(_)) }
};
}
/// A call filter for the XCM Transact instruction. This is a temporary measure until we properly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ match_types! {
};
pub type ParentOrSiblings: impl Contains<MultiLocation> = {
MultiLocation { parents: 1, interior: Here } |
MultiLocation { parents: 1, interior: X1(_) }
MultiLocation { parents: 1, interior: X1(Parachain(_)) }
};
pub type FellowsPlurality: impl Contains<MultiLocation> = {
MultiLocation { parents: 1, interior: X2(Parachain(1001), Plurality { id: BodyId::Technical, ..}) }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ match_types! {
};
pub type ParentOrSiblings: impl Contains<MultiLocation> = {
MultiLocation { parents: 1, interior: Here } |
MultiLocation { parents: 1, interior: X1(_) }
MultiLocation { parents: 1, interior: X1(Parachain(_)) }
};
}

Expand Down

0 comments on commit 7ca4725

Please sign in to comment.