Skip to content

Commit

Permalink
fix transfer token
Browse files Browse the repository at this point in the history
  • Loading branch information
alistair-singh committed Nov 3, 2023
1 parent 6afceba commit fdfcb31
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions smoketest/tests/transfer_token.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use snowbridge_smoketest::{
xcm::{
v3::{
junction::{Junction, NetworkId},
junctions::{Junctions, Junctions::Here},
junctions::Junctions,
multiasset::{AssetId, Fungibility, MultiAsset, MultiAssets},
},
VersionedMultiAssets, VersionedMultiLocation,
Expand Down Expand Up @@ -59,9 +59,13 @@ async fn transfer_token() {

let signer: PairSigner<AssetHubConfig, _> = PairSigner::new(keypair);

let fee: u128 = 1000_800_566_581;
let _fee: u128 = 1_000_800_566_581;
let amount: u128 = 1_000_000_000;
let assets = VersionedMultiAssets::V3(MultiAssets(vec![
//MultiAsset {
// id: AssetId::Concrete(MultiLocation { parents: 1, interior: Junctions::Here }),
// fun: Fungibility::Fungible(fee),
//},
MultiAsset {
id: AssetId::Concrete(MultiLocation {
parents: 2,
Expand All @@ -76,16 +80,14 @@ async fn transfer_token() {

let destination = VersionedMultiLocation::V3(MultiLocation {
parents: 2,
interior: Junctions::X2(
interior: Junctions::X1(
Junction::GlobalConsensus(NetworkId::Ethereum { chain_id: 15 }),
Junction::AccountKey20 { network: None, key: DESTINATION_ADDRESS.into() },
),
});

let beneficiary = VersionedMultiLocation::V3(MultiLocation {
parents: 2,
interior: Junctions::X2(
Junction::GlobalConsensus(NetworkId::Ethereum { chain_id: 15 }),
parents: 0,
interior: Junctions::X1(
Junction::AccountKey20 { network: None, key: DESTINATION_ADDRESS.into() },
),
});
Expand Down

0 comments on commit fdfcb31

Please sign in to comment.