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.tsdiffbeforeafterboth--- a/tests/src/benchmarks/mintFee/benchmark.ts
+++ b/tests/src/benchmarks/mintFee/benchmark.ts
@@ -100,7 +100,7 @@
const ethSigner = await helper.eth.createAccountWithBalance(donor, 100n);
const ethReceiver = await helper.eth.createAccountWithBalance(donor, 5n);
-
+
let susbtrateCollection: UniqueNFTCollection | null;
const createCollectionSubstrateFee = convertToTokens(
await helper.arrange.calculcateFee({Substrate: donor.address}, async () => {
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.tsdiffbeforeafterboth463463464 await usingKaruraPlaygrounds(karuraUrl, async (helper) => {464 await usingKaruraPlaygrounds(karuraUrl, 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: QUARTZ_CHAIN,470 Parachain: QUARTZ_CHAIN,471 },471 },472 ],472 },473 },473 },474 };474 };475475494494495 itSub('Should connect and send QTZ to Karura', async ({helper}) => {495 itSub('Should connect and send QTZ to Karura', async ({helper}) => {496 const destination = {496 const destination = {497 V0: {497 V1: {498 parents: 1,498 X2: [499 interior: {499 'Parent',500 {500 X1: {501 Parachain: KARURA_CHAIN,501 Parachain: KARURA_CHAIN,502 },502 },503 ],503 },504 },504 },505 };505 };506506507 const beneficiary = {507 const beneficiary = {508 V0: {508 V1: {509 parents: 0,510 interior: {509 X1: {511 X1: {510 AccountId32: {512 AccountId32: {511 network: 'Any',513 network: 'Any',512 id: randomAccount.addressRaw,514 id: randomAccount.addressRaw,513 },515 },514 },516 },515 },517 },518 },516 };519 };517520tests/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,
+ },
},
},
},