mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-10-30 15:39:49 +00:00
Same procedure as not every day (#636)
* Same procedure as not every day * Remove warning * Update
This commit is contained in:
1 parent
24f8cd72cf
commit
a8d84dba8e
7 files changed
+448
-430
No files matched your search
@@ -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 =
|
||||
|
||||
Reference in new issue
Block a user