Same procedure as not every day (#636)

* Same procedure as not every day

* Remove warning

* Update
This commit is contained in:
Bastian Köcher
2021-10-01 13:23:56 +02:00
committed by GitHub
parent 24f8cd72cf
commit a8d84dba8e
7 changed files with 448 additions and 430 deletions
+3 -1
View File
@@ -33,7 +33,9 @@ use xcm::{latest::prelude::*, WrapVersion};
/// for the `SendXcm` implementation.
pub struct ParentAsUmp<T, W>(PhantomData<(T, W)>);
impl<T: UpwardMessageSender, W: WrapVersion> SendXcm for ParentAsUmp<T, W> {
fn send_xcm(dest: MultiLocation, msg: Xcm<()>) -> Result<(), SendError> {
fn send_xcm(dest: impl Into<MultiLocation>, msg: Xcm<()>) -> Result<(), SendError> {
let dest = dest.into();
if dest.contains_parents_only(1) {
// An upward message for the relay chain.
let versioned_xcm =