mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 17:31:03 +00:00
XCM canonicalize + prepend_with fix (#3269)
* canonicalize + prepend_with fix * fix doc * not needed * better docs, and more deterministic logic * one more test * Update xcm/src/v0/multi_location.rs * Update multi_location.rs Co-Authored-By: parity-processbot <> * follow style guide Co-Authored-By: parity-processbot <> * oops * Update xcm/src/v0/multi_location.rs Co-authored-by: Robert Habermeier <rphmeier@gmail.com> * Update xcm/src/v0/multi_location.rs Co-authored-by: Robert Habermeier <rphmeier@gmail.com>
This commit is contained in:
@@ -138,6 +138,14 @@ pub enum Junction {
|
||||
}
|
||||
|
||||
impl Junction {
|
||||
/// Returns true if this junction is a `Parent` item.
|
||||
pub fn is_parent(&self) -> bool {
|
||||
match self {
|
||||
Junction::Parent => true,
|
||||
_ => false,
|
||||
}
|
||||
}
|
||||
|
||||
/// Returns true if this junction can be considered an interior part of its context. This is generally `true`,
|
||||
/// except for the `Parent` item.
|
||||
pub fn is_interior(&self) -> bool {
|
||||
|
||||
Reference in New Issue
Block a user