This commit is contained in:
Keith Yeung
2022-03-10 23:25:36 -08:00
parent 9e70ba8317
commit 484e63daf1
3 changed files with 14 additions and 14 deletions
+5 -3
View File
@@ -345,7 +345,10 @@ mod tests {
};
use sp_version::RuntimeVersion;
use std::cell::RefCell;
use xcm::latest::{MultiLocation, OriginKind, Weightless};
use xcm::{
latest::{MultiLocation, OriginKind},
v3::traits::Weightless,
};
type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Test>;
type Block = frame_system::mocking::MockBlock<Test>;
@@ -428,12 +431,11 @@ mod tests {
Err(message)
}
fn execute_xcm_in_credit(
fn execute(
_origin: impl Into<MultiLocation>,
message: Xcm,
_hash: XcmHash,
weight_limit: Weight,
_credit: Weight,
) -> Outcome {
let o = match (message.0.len(), &message.0.first()) {
(1, Some(Transact { require_weight_at_most, .. })) => {