difftreelog
Merge pull request #860 from UniqueNetwork/fix/remove-v1-from-xcm-tests
in: master
Fix/remove v1 from xcm tests
4 files changed
tests/src/benchmarks/mintFee/benchmark.tsdiffbeforeafterbothno syntactic changes
tests/src/burnItem.test.tsdiffbeforeafterboth--- a/tests/src/burnItem.test.ts
+++ b/tests/src/burnItem.test.ts
@@ -15,18 +15,17 @@
// along with Unique Network. If not, see <http://www.gnu.org/licenses/>.
import {IKeyringPair} from '@polkadot/types/types';
-import {expect, itSub, Pallets, usingPlaygrounds} from './util';
+import {expect, itSub, usingPlaygrounds} from './util';
describe('integration test: ext. burnItem():', () => {
let donor: IKeyringPair;
let alice: IKeyringPair;
- let bob: IKeyringPair;
before(async () => {
await usingPlaygrounds(async (helper, privateKey) => {
donor = await privateKey({filename: __filename});
- [alice, bob] = await helper.arrange.createAccounts([100n, 100n], donor);
+ [alice] = await helper.arrange.createAccounts([100n], donor);
});
});
tests/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,
+ },
},
},
},
tests/src/xcm/xcmUnique.test.tsdiffbeforeafterboth--- a/tests/src/xcm/xcmUnique.test.ts
+++ b/tests/src/xcm/xcmUnique.test.ts
@@ -463,13 +463,13 @@
await usingAcalaPlaygrounds(acalaUrl, async (helper) => {
const destination = {
- V0: {
- X2: [
- 'Parent',
- {
+ V1: {
+ parents: 1,
+ interior: {
+ X1: {
Parachain: UNIQUE_CHAIN,
},
- ],
+ },
},
};
@@ -495,22 +495,25 @@
itSub('Should connect and send UNQ to Acala', async ({helper}) => {
const destination = {
- V0: {
- X2: [
- 'Parent',
- {
+ V1: {
+ parents: 1,
+ interior: {
+ X1: {
Parachain: ACALA_CHAIN,
},
- ],
+ },
},
};
const beneficiary = {
- V0: {
- X1: {
- AccountId32: {
- network: 'Any',
- id: randomAccount.addressRaw,
+ V1: {
+ parents: 0,
+ interior: {
+ X1: {
+ AccountId32: {
+ network: 'Any',
+ id: randomAccount.addressRaw,
+ },
},
},
},