@@ -805,6 +805,7 @@ describeXCM('[XCM] Integration test: Unique rejects non-native tokens', () => {
805805 let uniqueParachainMultilocation : any ;
806806 let uniqueAccountMultilocation : any ;
807807 let uniqueCombinedMultilocation : any ;
808+ let uniqueCombinedMultilocationAcala : any ; // TODO remove when Acala goes V2
808809
809810 let messageSent : any ;
810811
@@ -823,7 +824,7 @@ describeXCM('[XCM] Integration test: Unique rejects non-native tokens', () => {
823824 } ;
824825
825826 uniqueParachainMultilocation = {
826- V1 : {
827+ V2 : {
827828 parents : 1 ,
828829 interior : {
829830 X1 : uniqueParachainJunction ,
@@ -849,6 +850,15 @@ describeXCM('[XCM] Integration test: Unique rejects non-native tokens', () => {
849850 } ,
850851 } ;
851852
853+ uniqueCombinedMultilocationAcala = {
854+ V1 : {
855+ parents : 1 ,
856+ interior : {
857+ X2 : [ uniqueParachainJunction , uniqueAccountJunction ] ,
858+ } ,
859+ } ,
860+ } ;
861+
852862 // Set the default version to wrap the first message to other chains.
853863 await helper . getSudo ( ) . xcm . setSafeXcmVersion ( alice , SAFE_XCM_VERSION ) ;
854864 } ) ;
@@ -871,7 +881,7 @@ describeXCM('[XCM] Integration test: Unique rejects non-native tokens', () => {
871881 const id = {
872882 Token : 'ACA' ,
873883 } ;
874- const destination = uniqueCombinedMultilocation ;
884+ const destination = uniqueCombinedMultilocationAcala ;
875885 await helper . xTokens . transfer ( alice , id , testAmount , destination , 'Unlimited' ) ;
876886
877887 messageSent = await helper . wait . expectEvent ( maxWaitBlocks , Event . XcmpQueue . XcmpMessageSent ) ;
@@ -1436,7 +1446,7 @@ describeXCM('[XCM] Integration test: Exchanging tokens with Astar', () => {
14361446 itSub ( 'Should connect to Astar and send UNQ back' , async ( { helper} ) => {
14371447 await usingAstarPlaygrounds ( astarUrl , async ( helper ) => {
14381448 const destination = {
1439- V1 : {
1449+ V2 : {
14401450 parents : 1 ,
14411451 interior : {
14421452 X1 : {
@@ -1447,7 +1457,7 @@ describeXCM('[XCM] Integration test: Exchanging tokens with Astar', () => {
14471457 } ;
14481458
14491459 const beneficiary = {
1450- V1 : {
1460+ V2 : {
14511461 parents : 0 ,
14521462 interior : {
14531463 X1 : {
@@ -1461,7 +1471,7 @@ describeXCM('[XCM] Integration test: Exchanging tokens with Astar', () => {
14611471 } ;
14621472
14631473 const assets = {
1464- V1 : [
1474+ V2 : [
14651475 {
14661476 id : {
14671477 Concrete : {
@@ -1517,7 +1527,7 @@ describeXCM('[XCM] Integration test: Exchanging tokens with Astar', () => {
15171527 const [ targetAccount ] = await helper . arrange . createAccounts ( [ targetAccountBalance ] , alice ) ;
15181528
15191529 const uniqueMultilocation = {
1520- V1 : {
1530+ V2 : {
15211531 parents : 1 ,
15221532 interior : {
15231533 X1 : { Parachain : UNIQUE_CHAIN } ,
@@ -1582,7 +1592,7 @@ describeXCM('[XCM] Integration test: Exchanging tokens with Astar', () => {
15821592 const [ targetAccount ] = await helper . arrange . createAccounts ( [ 0n ] , alice ) ;
15831593
15841594 const uniqueMultilocation = {
1585- V1 : {
1595+ V2 : {
15861596 parents : 1 ,
15871597 interior : {
15881598 X1 : {
@@ -1652,5 +1662,4 @@ describeXCM('[XCM] Integration test: Exchanging tokens with Astar', () => {
16521662 accountBalance = await helper . balance . getSubstrate ( targetAccount . address ) ;
16531663 expect ( accountBalance ) . to . be . equal ( 0n ) ;
16541664 } ) ;
1655-
16561665} ) ;
0 commit comments