From 81c388773ff52c36f50ed02e21c189626290b3ad Mon Sep 17 00:00:00 2001 From: Daniel Shiposha Date: Wed, 29 Mar 2023 20:31:19 +0000 Subject: [PATCH] fix: xcm v3 test (v2 locations) --- --- a/tests/src/xcm/xcmQuartz.test.ts +++ b/tests/src/xcm/xcmQuartz.test.ts @@ -145,7 +145,7 @@ // (fee for USDT XCM are paid in relay tokens) await usingRelayPlaygrounds(relayUrl, async (helper) => { const destination = { - V2: { + V1: { parents: 0, interior: {X1: { Parachain: QUARTZ_CHAIN, @@ -154,7 +154,7 @@ }}; const beneficiary = { - V2: { + V1: { parents: 0, interior: {X1: { AccountId32: { @@ -166,7 +166,7 @@ }; const assets = { - V2: [ + V1: [ { id: { Concrete: { @@ -191,7 +191,7 @@ itSub('Should connect and send USDT from Statemine to Quartz', async ({helper}) => { await usingStateminePlaygrounds(statemineUrl, async (helper) => { const dest = { - V2: { + V1: { parents: 1, interior: {X1: { Parachain: QUARTZ_CHAIN, @@ -200,7 +200,7 @@ }}; const beneficiary = { - V2: { + V1: { parents: 0, interior: {X1: { AccountId32: { @@ -212,7 +212,7 @@ }; const assets = { - V2: [ + V1: [ { id: { Concrete: { @@ -332,7 +332,7 @@ await usingRelayPlaygrounds(relayUrl, async (helper) => { const destination = { - V2: { + V1: { parents: 0, interior: {X1: { Parachain: QUARTZ_CHAIN, @@ -341,7 +341,7 @@ }}; const beneficiary = { - V2: { + V1: { parents: 0, interior: {X1: { AccountId32: { @@ -353,7 +353,7 @@ }; const assets = { - V2: [ + V1: [ { id: { Concrete: { @@ -470,7 +470,7 @@ await usingKaruraPlaygrounds(karuraUrl, async (helper) => { const destination = { - V2: { + V1: { parents: 1, interior: { X1: { @@ -580,7 +580,7 @@ itSub('Should connect to Karura and send QTZ back', async ({helper}) => { await usingKaruraPlaygrounds(karuraUrl, async (helper) => { const destination = { - V2: { + V1: { parents: 1, interior: { X2: [ @@ -644,7 +644,7 @@ itSub('Quartz rejects KAR tokens from Karura', async ({helper}) => { await usingKaruraPlaygrounds(karuraUrl, async (helper) => { const destination = { - V2: { + V1: { parents: 1, interior: { X2: [ @@ -905,7 +905,7 @@ itSub('Should connect to Moonriver and send QTZ back', async ({helper}) => { await usingMoonriverPlaygrounds(moonriverUrl, async (helper) => { const asset = { - V2: { + V1: { id: { Concrete: { parents: 1, @@ -920,7 +920,7 @@ }, }; const destination = { - V2: { + V1: { parents: 1, interior: { X2: [ --- a/tests/src/xcm/xcmUnique.test.ts +++ b/tests/src/xcm/xcmUnique.test.ts @@ -145,7 +145,7 @@ // (fee for USDT XCM are paid in relay tokens) await usingRelayPlaygrounds(relayUrl, async (helper) => { const destination = { - V2: { + V1: { parents: 0, interior: {X1: { Parachain: UNIQUE_CHAIN, @@ -154,7 +154,7 @@ }}; const beneficiary = { - V2: { + V1: { parents: 0, interior: {X1: { AccountId32: { @@ -166,7 +166,7 @@ }; const assets = { - V2: [ + V1: [ { id: { Concrete: { @@ -191,7 +191,7 @@ itSub('Should connect and send USDT from Statemint to Unique', async ({helper}) => { await usingStatemintPlaygrounds(statemintUrl, async (helper) => { const dest = { - V2: { + V1: { parents: 1, interior: {X1: { Parachain: UNIQUE_CHAIN, @@ -200,7 +200,7 @@ }}; const beneficiary = { - V2: { + V1: { parents: 0, interior: {X1: { AccountId32: { @@ -212,7 +212,7 @@ }; const assets = { - V2: [ + V1: [ { id: { Concrete: { @@ -332,7 +332,7 @@ await usingRelayPlaygrounds(relayUrl, async (helper) => { const destination = { - V2: { + V1: { parents: 0, interior: {X1: { Parachain: UNIQUE_CHAIN, @@ -341,7 +341,7 @@ }}; const beneficiary = { - V2: { + V1: { parents: 0, interior: {X1: { AccountId32: { @@ -353,7 +353,7 @@ }; const assets = { - V2: [ + V1: [ { id: { Concrete: { @@ -470,7 +470,7 @@ await usingAcalaPlaygrounds(acalaUrl, async (helper) => { const destination = { - V2: { + V1: { parents: 1, interior: { X1: { @@ -581,7 +581,7 @@ itSub('Should connect to Acala and send UNQ back', async ({helper}) => { await usingAcalaPlaygrounds(acalaUrl, async (helper) => { const destination = { - V2: { + V1: { parents: 1, interior: { X2: [ @@ -645,7 +645,7 @@ itSub('Unique rejects ACA tokens from Acala', async ({helper}) => { await usingAcalaPlaygrounds(acalaUrl, async (helper) => { const destination = { - V2: { + V1: { parents: 1, interior: { X2: [ @@ -907,7 +907,7 @@ itSub('Should connect to Moonbeam and send UNQ back', async ({helper}) => { await usingMoonbeamPlaygrounds(moonbeamUrl, async (helper) => { const asset = { - V2: { + V1: { id: { Concrete: { parents: 1, @@ -922,7 +922,7 @@ }, }; const destination = { - V2: { + V1: { parents: 1, interior: { X2: [ -- gitstuff