Skip to content

Commit f981733

Browse files
committed
xtoken tests
1 parent ca45617 commit f981733

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

xtokens/src/tests.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,8 @@ fn send_as_sovereign() {
356356
let call = relay::Call::System(frame_system::Call::<relay::Runtime>::remark_with_event(vec![1, 1, 1]));
357357
assert_ok!(para::OrmlXcm::send_as_sovereign(
358358
para::Origin::root(),
359-
Junction::Parent.into(),
360-
WithdrawAsset {
359+
Box::new(Junction::Parent.into()),
360+
Box::new(WithdrawAsset {
361361
assets: vec![MultiAsset::ConcreteFungible {
362362
id: MultiLocation::Null,
363363
amount: 1_000_000_000_000
@@ -373,7 +373,7 @@ fn send_as_sovereign() {
373373
call: call.encode().into(),
374374
}],
375375
}]
376-
}
376+
})
377377
));
378378
});
379379

@@ -402,8 +402,8 @@ fn send_as_sovereign_fails_if_bad_origin() {
402402
assert_err!(
403403
para::OrmlXcm::send_as_sovereign(
404404
para::Origin::signed(ALICE),
405-
Junction::Parent.into(),
406-
WithdrawAsset {
405+
Box::new(Junction::Parent.into()),
406+
Box::new(WithdrawAsset {
407407
assets: vec![MultiAsset::ConcreteFungible {
408408
id: MultiLocation::Null,
409409
amount: 1_000_000_000_000
@@ -419,7 +419,7 @@ fn send_as_sovereign_fails_if_bad_origin() {
419419
call: call.encode().into(),
420420
}],
421421
}]
422-
}
422+
})
423423
),
424424
DispatchError::BadOrigin,
425425
);

0 commit comments

Comments
 (0)