git.delta.rocks / unique-network / refs/commits / a560e8db71a2

difftreelog

fix remove v1 from xcm tests

Daniel Shiposha2023-01-26parent: #32b5c84.patch.diff
in: master

2 files changed

modifiedtests/src/xcm/xcmQuartz.test.tsdiffbeforeafterboth
--- a/tests/src/xcm/xcmQuartz.test.ts
+++ b/tests/src/xcm/xcmQuartz.test.ts
@@ -463,13 +463,13 @@
 
     await usingKaruraPlaygrounds(karuraUrl, async (helper) => {
       const destination = {
-        V0: {
-          X2: [
-            'Parent',
-            {
+        V1: {
+          parents: 1,
+          interior: {
+            X1: {
               Parachain: QUARTZ_CHAIN,
             },
-          ],
+          },
         },
       };
 
@@ -494,22 +494,25 @@
 
   itSub('Should connect and send QTZ to Karura', async ({helper}) => {
     const destination = {
-      V0: {
-        X2: [
-          'Parent',
-          {
+      V1: {
+        parents: 1,
+        interior: {
+          X1: {
             Parachain: KARURA_CHAIN,
           },
-        ],
+        },
       },
     };
 
     const beneficiary = {
-      V0: {
-        X1: {
-          AccountId32: {
-            network: 'Any',
-            id: randomAccount.addressRaw,
+      V1: {
+        parents: 0,
+        interior: {
+          X1: {
+            AccountId32: {
+              network: 'Any',
+              id: randomAccount.addressRaw,
+            },
           },
         },
       },
modifiedtests/src/xcm/xcmUnique.test.tsdiffbeforeafterboth
463463
464 await usingAcalaPlaygrounds(acalaUrl, async (helper) => {464 await usingAcalaPlaygrounds(acalaUrl, async (helper) => {
465 const destination = {465 const destination = {
466 V0: {466 V1: {
467 parents: 1,
467 X2: [468 interior: {
468 'Parent',
469 {469 X1: {
470 Parachain: UNIQUE_CHAIN,470 Parachain: UNIQUE_CHAIN,
471 },471 },
472 ],472 },
473 },473 },
474 };474 };
475475
495 itSub('Should connect and send UNQ to Acala', async ({helper}) => {495 itSub('Should connect and send UNQ to Acala', async ({helper}) => {
496496
497 const destination = {497 const destination = {
498 V0: {498 V1: {
499 parents: 1,
499 X2: [500 interior: {
500 'Parent',
501 {501 X1: {
502 Parachain: ACALA_CHAIN,502 Parachain: ACALA_CHAIN,
503 },503 },
504 ],504 },
505 },505 },
506 };506 };
507507
508 const beneficiary = {508 const beneficiary = {
509 V0: {509 V1: {
510 parents: 0,
511 interior: {
510 X1: {512 X1: {
511 AccountId32: {513 AccountId32: {
512 network: 'Any',514 network: 'Any',
513 id: randomAccount.addressRaw,515 id: randomAccount.addressRaw,
514 },516 },
515 },517 },
516 },518 },
519 },
517 };520 };
518521