Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XCM v6 #7123

Draft
wants to merge 25 commits into
base: master
Choose a base branch
from
Draft
Prev Previous commit
Next Next commit
fix
  • Loading branch information
xlc committed Jan 24, 2025
commit 9b66afcffdc799060980291b4fcd48ece0589b63
4 changes: 2 additions & 2 deletions polkadot/xcm/xcm-executor/src/tests/execute_with_origin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,14 @@ fn set_error_handler_and_appendix_work() {

assert_eq!(
vm.error_handler(),
&Xcm::<TestCall>(vec![DepositAsset {
&Xcm::<TestCall>::new(vec![DepositAsset {
assets: vec![Asset { id: AssetId(Location::new(0, [])), fun: Fungible(10) }].into(),
beneficiary: Location::new(0, [AccountId32 { id: SENDER_2, network: None }]),
},])
);
assert_eq!(
vm.appendix(),
&Xcm::<TestCall>(vec![DepositAsset {
&Xcm::<TestCall>::new(vec![DepositAsset {
assets: All.into(),
beneficiary: Location::new(0, [AccountId32 { id: RECIPIENT, network: None }]),
},])
Expand Down
4 changes: 2 additions & 2 deletions polkadot/xcm/xcm-executor/src/tests/initiate_transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fn clears_origin() {
let xcm_on_dest =
Xcm::new(vec![RefundSurplus, DepositAsset { assets: Wild(All), beneficiary: RECIPIENT.into() }]);
let assets: Assets = (Here, 90u128).into();
let xcm = Xcm::<TestCall>(vec![
let xcm = Xcm::<TestCall>::new(vec![
WithdrawAsset((Here, 100u128).into()),
PayFees { asset: (Here, 10u128).into() },
InitiateTransfer {
Expand Down Expand Up @@ -73,7 +73,7 @@ fn preserves_origin() {
let xcm_on_dest =
Xcm::new(vec![RefundSurplus, DepositAsset { assets: Wild(All), beneficiary: RECIPIENT.into() }]);
let assets: Assets = (Here, 90u128).into();
let xcm = Xcm::<TestCall>(vec![
let xcm = Xcm::<TestCall>::new(vec![
WithdrawAsset((Here, 100u128).into()),
PayFees { asset: (Here, 10u128).into() },
InitiateTransfer {
Expand Down