mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 12:51:02 +00:00
Make RelayedFrom typesafe (#3617)
* Corrent type * Fix build * Fixes * Fixes * Formatting
This commit is contained in:
@@ -17,10 +17,8 @@
|
||||
use crate::mock::*;
|
||||
use frame_support::{assert_noop, assert_ok, traits::Currency};
|
||||
use polkadot_parachain::primitives::{AccountIdConversion, Id as ParaId};
|
||||
use xcm::{
|
||||
opaque::v1::prelude::*,
|
||||
v1::{Junction, Xcm},
|
||||
};
|
||||
use std::convert::TryInto;
|
||||
use xcm::v1::prelude::*;
|
||||
|
||||
const ALICE: AccountId = AccountId::new([0u8; 32]);
|
||||
const BOB: AccountId = AccountId::new([1u8; 32]);
|
||||
@@ -55,7 +53,10 @@ fn send_works() {
|
||||
sent_xcm(),
|
||||
vec![(
|
||||
Here.into(),
|
||||
RelayedFrom { who: sender.clone(), message: Box::new(message.clone()) }
|
||||
RelayedFrom {
|
||||
who: sender.clone().try_into().unwrap(),
|
||||
message: Box::new(message.clone()),
|
||||
}
|
||||
)]
|
||||
);
|
||||
assert_eq!(
|
||||
|
||||
Reference in New Issue
Block a user