diff --git a/smoketest/tests/send_token.rs b/smoketest/tests/send_token.rs index 705166e987..4ec84e549a 100644 --- a/smoketest/tests/send_token.rs +++ b/smoketest/tests/send_token.rs @@ -11,13 +11,13 @@ use snowbridge_smoketest::{ contracts::{i_gateway, weth9}, parachains::assethub::api::{ foreign_assets::events::Issued, - runtime_types::staging_xcm::v3::{ + runtime_types::staging_xcm::v3::multilocation::MultiLocation, + runtime_types::xcm::v3::{ junction::{ Junction::{AccountKey20, GlobalConsensus}, NetworkId, }, junctions::Junctions::X3, - multilocation::MultiLocation, }, }, }; diff --git a/smoketest/tests/transfer_native_from_agent.rs b/smoketest/tests/transfer_native_from_agent.rs index e2f8775f69..8c533b0dde 100644 --- a/smoketest/tests/transfer_native_from_agent.rs +++ b/smoketest/tests/transfer_native_from_agent.rs @@ -42,7 +42,7 @@ async fn transfer_native_from_agent() { TRANSFER_AMOUNT, ) .await - .expect("construct innner call."), + .expect("construct inner call."), ); let result = send_xcm_transact(&test_clients.template_client, message) diff --git a/smoketest/tests/transfer_token.rs b/smoketest/tests/transfer_token.rs index 730de4b200..4a05d64220 100644 --- a/smoketest/tests/transfer_token.rs +++ b/smoketest/tests/transfer_token.rs @@ -1,4 +1,4 @@ -use assethub::api::bridge_transfer::calls::TransactionApi; +use assethub::api::polkadot_xcm::calls::TransactionApi; use ethers::prelude::Middleware; use ethers::{ providers::{Provider, Ws}, @@ -14,12 +14,12 @@ use snowbridge_smoketest::helper::AssetHubConfig; use snowbridge_smoketest::{ contracts::weth9::TransferFilter, parachains::{ - assethub::api::runtime_types::staging_xcm::{ + assethub::api::runtime_types::staging_xcm::v3::multilocation::MultiLocation, + assethub::api::runtime_types::xcm::{ v3::{ junction::{Junction, NetworkId}, junctions::Junctions, multiasset::{AssetId, Fungibility, MultiAsset, MultiAssets}, - multilocation::MultiLocation, }, VersionedMultiAssets, VersionedMultiLocation, }, @@ -87,7 +87,19 @@ async fn transfer_token() { ), }); - let bridge_transfer_call = TransactionApi.transfer_asset_via_bridge(assets, destination); + let beneficiary = VersionedMultiLocation::V3(MultiLocation { + parents: 2, + interior: Junctions::X2( + Junction::GlobalConsensus(NetworkId::Ethereum { chain_id: 15 }), + Junction::AccountKey20 { + network: None, + key: DESTINATION_ADDRESS.into(), + }, + ), + }); + + let bridge_transfer_call = + TransactionApi.reserve_transfer_assets(destination, beneficiary, assets, 0); let result = assethub .tx() diff --git a/smoketest/tests/upgrade_gateway.rs b/smoketest/tests/upgrade_gateway.rs index 7a0b64af35..348488d06f 100644 --- a/smoketest/tests/upgrade_gateway.rs +++ b/smoketest/tests/upgrade_gateway.rs @@ -20,13 +20,11 @@ use snowbridge_smoketest::{ pallet_xcm::pallet::Call, rococo_runtime::RuntimeCall, sp_weights::weight_v2::Weight, - staging_xcm::{ + staging_xcm::v3::multilocation::MultiLocation, + xcm::{ double_encoded::DoubleEncoded, v2::OriginKind, - v3::{ - junction::Junction, junctions::Junctions, multilocation::MultiLocation, - Instruction, WeightLimit, Xcm, - }, + v3::{junction::Junction, junctions::Junctions, Instruction, WeightLimit, Xcm}, VersionedMultiLocation, VersionedXcm, }, },