This commit is contained in:
Keith Yeung
2022-09-27 16:39:24 +08:00
parent afccd794f2
commit 013534a684
+5 -2
View File
@@ -31,7 +31,10 @@ pub use pallet::*;
use scale_info::TypeInfo;
use sp_runtime::RuntimeDebug;
use sp_std::{convert::TryFrom, prelude::*};
use xcm::{latest::prelude::*, VersionedXcm, MAX_XCM_DECODE_DEPTH};
use xcm::{
latest::{prelude::*, Weight as XCMWeight},
VersionedXcm, MAX_XCM_DECODE_DEPTH,
};
#[derive(Copy, Clone, Eq, PartialEq, Encode, Decode, RuntimeDebug, TypeInfo)]
pub struct ConfigData {
@@ -428,7 +431,7 @@ mod tests {
pub enum Weightless {}
impl PreparedMessage for Weightless {
fn weight_of(&self) -> Weight {
fn weight_of(&self) -> XCMWeight {
unreachable!()
}
}