Skip to content

Commit

Permalink
XCM MultiAssets: sort after reanchoring
Browse files Browse the repository at this point in the history
  • Loading branch information
serban300 committed Nov 2, 2023
1 parent fe9435d commit f3f9d1c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion polkadot/xcm/src/v3/multiasset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,9 @@ impl MultiAssets {
target: &MultiLocation,
context: InteriorMultiLocation,
) -> Result<(), ()> {
self.0.iter_mut().try_for_each(|i| i.reanchor(target, context))
self.0.iter_mut().try_for_each(|i| i.reanchor(target, context))?;
self.0.sort();
Ok(())
}

/// Return a reference to an item at a specific index or `None` if it doesn't exist.
Expand Down

0 comments on commit f3f9d1c

Please sign in to comment.