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

difftreelog

test remove outdated createMultipleItemsEx check

Yaroslav Bolyukin2022-08-11parent: #282c701.patch.diff
in: master
`RefungibleMultipleItems` no longer allows to provide multiple users for single token

1 file changed

modifiedtests/src/createMultipleItemsEx.test.tsdiffbeforeafterboth
393 });393 });
394 });394 });
395
396 it('fails when trying to set multiple owners when creating multiple refungibles', async function() {
397 await requirePallets(this, [Pallets.ReFungible]);
398
399 const collection = await createCollectionExpectSuccess({mode: {type: 'ReFungible'}});
400
401 await usingApi(async (api, privateKeyWrapper) => {
402 const alice = privateKeyWrapper('//Alice');
403 const bob = privateKeyWrapper('//Bob');
404 // Polkadot requires map, and yet requires keys to be JSON encoded
405 const users = new Map();
406 users.set(JSON.stringify({substrate: alice.address}), 1);
407 users.set(JSON.stringify({substrate: bob.address}), 1);
408
409 // TODO: better error message?
410 await expect(executeTransaction(api, alice, api.tx.unique.createMultipleItemsEx(collection, {
411 RefungibleMultipleItems: [
412 {users},
413 {users},
414 ],
415 }))).to.be.rejectedWith(/^refungible\.NotRefungibleDataUsedToMintFungibleCollectionToken$/);
416 });
417 });
418});395});
419396