This commit is contained in:
Keith Yeung
2022-03-11 00:22:39 -08:00
parent 484e63daf1
commit f474297b5b
+8 -4
View File
@@ -345,10 +345,7 @@ mod tests {
};
use sp_version::RuntimeVersion;
use std::cell::RefCell;
use xcm::{
latest::{MultiLocation, OriginKind},
v3::traits::Weightless,
};
use xcm::latest::{MultiLocation, OriginKind};
type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Test>;
type Block = frame_system::mocking::MockBlock<Test>;
@@ -423,6 +420,13 @@ mod tests {
})
}
pub enum Weightless {}
impl PreparedMessage for Weightless {
fn weight_of(&self) -> Weight {
unreachable!()
}
}
pub struct MockExec;
impl ExecuteXcm<Call> for MockExec {
type Prepared = Weightless;