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

difftreelog

Skip rft tests for Unique

Max Andreev2023-01-18parent: #9baecb4.patch.diff
in: master

1 file changed

modifiedtests/src/sub/nesting/common.test.tsdiffbeforeafterboth
122 await expect(collectionForNesting.transfer(alice, targetToken.nestingAccount(), 50n)).to.be.rejectedWith('common.UserIsNotAllowedToNest');122 await expect(collectionForNesting.transfer(alice, targetToken.nestingAccount(), 50n)).to.be.rejectedWith('common.UserIsNotAllowedToNest');
123 });123 });
124124
125 itSub('Cannot nest to a future collection', async ({helper}) => {125 itSub.ifWithPallets('Cannot nest to a future collection', [Pallets.ReFungible], async ({helper}) => {
126 const nonExistingCollectionId = await helper.collection.getTotalCount() + 1000;126 const nonExistingCollectionId = await helper.collection.getTotalCount() + 1000;
127 const futureToken = helper.nft.getTokenObject(nonExistingCollectionId, 1);127 const futureToken = helper.nft.getTokenObject(nonExistingCollectionId, 1);
128128
144 await expect(ftCollectionForNesting.transfer(alice, futureToken.nestingAccount(), 50n)).to.be.rejectedWith('CollectionNotFound');144 await expect(ftCollectionForNesting.transfer(alice, futureToken.nestingAccount(), 50n)).to.be.rejectedWith('CollectionNotFound');
145 });145 });
146146
147 itSub('Cannot nest to a future token in a NFT collection', async ({helper}) => {147 itSub.ifWithPallets('Cannot nest to a future token in a NFT collection', [Pallets.ReFungible], async ({helper}) => {
148 const {collectionId} = await helper.nft.mintCollection(alice);148 const {collectionId} = await helper.nft.mintCollection(alice);
149 // To avoid UserIsNotAllowedToNest error149 // To avoid UserIsNotAllowedToNest error
150 await helper.collection.setPermissions(alice, collectionId, {nesting: {collectionAdmin: true}});150 await helper.collection.setPermissions(alice, collectionId, {nesting: {collectionAdmin: true}});
168 await expect(ftCollectionForNesting.transfer(alice, futureToken.nestingAccount(), 50n)).to.be.rejectedWith('TokenNotFound');168 await expect(ftCollectionForNesting.transfer(alice, futureToken.nestingAccount(), 50n)).to.be.rejectedWith('TokenNotFound');
169 });169 });
170170
171 itEth('Cannot nest to collection address', async({helper}) => {171 itEth.ifWithPallets('Cannot nest to collection address', [Pallets.ReFungible], async({helper}) => {
172 const existingCollection = await helper.nft.mintCollection(alice);172 const existingCollection = await helper.nft.mintCollection(alice);
173 const existingCollectionAddress = helper.ethAddress.fromCollectionId(existingCollection.collectionId);173 const existingCollectionAddress = helper.ethAddress.fromCollectionId(existingCollection.collectionId);
174 const futureCollectionAddress = helper.ethAddress.fromCollectionId(99999999);174 const futureCollectionAddress = helper.ethAddress.fromCollectionId(99999999);