From bc60087b6e1f0d0aa6a3fffa03cd44f95d4e3597 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Thu, 11 Aug 2022 14:19:38 +0000 Subject: [PATCH] test: remove outdated createMultipleItemsEx check `RefungibleMultipleItems` no longer allows to provide multiple users for single token --- --- a/tests/src/createMultipleItemsEx.test.ts +++ b/tests/src/createMultipleItemsEx.test.ts @@ -392,27 +392,4 @@ expect(json).to.be.deep.equal(data); }); }); - - it('fails when trying to set multiple owners when creating multiple refungibles', async function() { - await requirePallets(this, [Pallets.ReFungible]); - - const collection = await createCollectionExpectSuccess({mode: {type: 'ReFungible'}}); - - await usingApi(async (api, privateKeyWrapper) => { - const alice = privateKeyWrapper('//Alice'); - const bob = privateKeyWrapper('//Bob'); - // Polkadot requires map, and yet requires keys to be JSON encoded - const users = new Map(); - users.set(JSON.stringify({substrate: alice.address}), 1); - users.set(JSON.stringify({substrate: bob.address}), 1); - - // TODO: better error message? - await expect(executeTransaction(api, alice, api.tx.unique.createMultipleItemsEx(collection, { - RefungibleMultipleItems: [ - {users}, - {users}, - ], - }))).to.be.rejectedWith(/^refungible\.NotRefungibleDataUsedToMintFungibleCollectionToken$/); - }); - }); }); -- gitstuff