diff --git a/xcm-simulator/src/lib.rs b/xcm-simulator/src/lib.rs index 42a89a17..d25a6a50 100644 --- a/xcm-simulator/src/lib.rs +++ b/xcm-simulator/src/lib.rs @@ -137,6 +137,7 @@ pub fn para_ext(para_id: u32) -> sp_io::TestExternalities { (parent_account_id(), INITIAL_BALANCE), (sibling_account_id(PARA_A_ID), INITIAL_BALANCE), (sibling_account_id(PARA_B_ID), INITIAL_BALANCE), + (sibling_account_id(PARA_TELEPORTER_ID), INITIAL_BALANCE), (sibling_account_id(PARA_LAOSISH_ID), INITIAL_BALANCE), ], } diff --git a/xcm-simulator/src/tests/mod.rs b/xcm-simulator/src/tests/mod.rs index 809c59a6..1d84c471 100644 --- a/xcm-simulator/src/tests/mod.rs +++ b/xcm-simulator/src/tests/mod.rs @@ -716,18 +716,18 @@ fn teleport_para_teleport_to_para_a() { call: create_asset.encode().into(), }]), )); - }); - - let amount = 1_000; - assert_ok!(ParachainTeleporterPalletXcm::limited_teleport_assets( - parachain_teleporter::RuntimeOrigin::signed(ALICE.into()), - Box::new(Parachain(PARA_A_ID).into()), - Box::new(AccountId32 { network: None, id: ALICE.into() }.into()), - Box::new((Here, amount).into()), - 0, - WeightLimit::Limited(Weight::from_parts(INITIAL_BALANCE as u64, 1024 * 1024)), - )); + let amount = 1_000; - assert_eq!(parachain_teleporter::Balances::free_balance(ALICE), INITIAL_BALANCE - amount); + assert_ok!(ParachainTeleporterPalletXcm::limited_teleport_assets( + parachain_teleporter::RuntimeOrigin::signed(ALICE.into()), + Box::new(Parachain(PARA_A_ID).into()), + Box::new(AccountId32 { network: None, id: ALICE.into() }.into()), + Box::new((Here, amount).into()), + 0, + WeightLimit::Limited(Weight::from_parts(INITIAL_BALANCE as u64, 1024 * 1024)), + )); + + assert_eq!(parachain_teleporter::Balances::free_balance(ALICE), INITIAL_BALANCE - amount); + }); }