difftreelog
Skip rft tests for Unique
in: master
1 file changed
tests/src/sub/nesting/common.test.tsdiffbeforeafterboth122 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 });124124125 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);128128144 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 });146146147 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 error150 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 });170170171 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);