difftreelog
fix remove mintDefaultCollection
in: master
2 files changed
tests/src/.outdated/scheduler.test.tsdiffbeforeafterboth54 });54 });555556 itSub.ifWithPallets('Can delay a transfer of an owned token', [Pallets.Scheduler], async ({helper}) => {56 itSub.ifWithPallets('Can delay a transfer of an owned token', [Pallets.Scheduler], async ({helper}) => {57 const collection = await helper.nft.mintDefaultCollection(alice);57 const collection = await helper.nft.mintCollection(alice, {tokenPrefix: 'schd'});58 const token = await collection.mintToken(alice);58 const token = await collection.mintToken(alice);59 const schedulerId = await helper.scheduler.makeScheduledId();59 const schedulerId = await helper.scheduler.makeScheduledId();60 const blocksBeforeExecution = 4;60 const blocksBeforeExecution = 4;104 });104 });105105106 itSub.ifWithPallets('Can cancel a scheduled operation which has not yet taken effect', [Pallets.Scheduler], async ({helper}) => {106 itSub.ifWithPallets('Can cancel a scheduled operation which has not yet taken effect', [Pallets.Scheduler], async ({helper}) => {107 const collection = await helper.nft.mintDefaultCollection(alice);107 const collection = await helper.nft.mintCollection(alice, {tokenPrefix: 'schd'});108 const token = await collection.mintToken(alice);108 const token = await collection.mintToken(alice);109109110 const scheduledId = await helper.scheduler.makeScheduledId();110 const scheduledId = await helper.scheduler.makeScheduledId();357 });357 });358358359 itSub.ifWithPallets("Can't overwrite a scheduled ID", [Pallets.Scheduler, Pallets.TestUtils], async ({helper}) => {359 itSub.ifWithPallets("Can't overwrite a scheduled ID", [Pallets.Scheduler, Pallets.TestUtils], async ({helper}) => {360 const collection = await helper.nft.mintDefaultCollection(alice);360 const collection = await helper.nft.mintCollection(alice, {tokenPrefix: 'schd'});361 const token = await collection.mintToken(alice);361 const token = await collection.mintToken(alice);362362363 const scheduledId = await helper.scheduler.makeScheduledId();363 const scheduledId = await helper.scheduler.makeScheduledId();387 });387 });388388389 itSub.ifWithPallets("Can't cancel a non-owned scheduled operation", [Pallets.Scheduler, Pallets.TestUtils], async ({helper}) => {389 itSub.ifWithPallets("Can't cancel a non-owned scheduled operation", [Pallets.Scheduler, Pallets.TestUtils], async ({helper}) => {390 const collection = await helper.nft.mintDefaultCollection(alice);390 const collection = await helper.nft.mintCollection(alice, {tokenPrefix: 'schd'});391 const token = await collection.mintToken(alice);391 const token = await collection.mintToken(alice);392392393 const scheduledId = await helper.scheduler.makeScheduledId();393 const scheduledId = await helper.scheduler.makeScheduledId();tests/src/util/playgrounds/unique.tsdiffbeforeafterboth1373 return this.getCollectionObject(this.helper.util.extractCollectionIdFromCreationResult(creationResult));1373 return this.getCollectionObject(this.helper.util.extractCollectionIdFromCreationResult(creationResult));1374 }1374 }13751376 async mintDefaultCollection(signer: TSigner, mode: 'NFT' | 'RFT'): Promise<UniqueCollectionBase> {1377 const defaultCreateCollectionParams: ICollectionCreationOptions = {1378 description: 'description',1379 name: 'name',1380 tokenPrefix: 'prfx',1381 };13821383 return this.mintCollection(signer, defaultCreateCollectionParams, mode);1384 }138513751386 getCollectionObject(_collectionId: number): any {1376 getCollectionObject(_collectionId: number): any {1387 return null;1377 return null;1567 return await super.mintCollection(signer, collectionOptions, 'NFT') as UniqueNFTCollection;1557 return await super.mintCollection(signer, collectionOptions, 'NFT') as UniqueNFTCollection;1568 }1558 }15691570 async mintDefaultCollection(signer: IKeyringPair): Promise<UniqueNFTCollection> {1571 return await super.mintDefaultCollection(signer, 'NFT') as UniqueNFTCollection;1572 }157315591574 /**1560 /**1575 * Mint new token1561 * Mint new token1757 return await super.mintCollection(signer, collectionOptions, 'RFT') as UniqueRFTCollection;1743 return await super.mintCollection(signer, collectionOptions, 'RFT') as UniqueRFTCollection;1758 }1744 }17591760 async mintDefaultCollection(signer: IKeyringPair): Promise<UniqueRFTCollection> {1761 return await super.mintDefaultCollection(signer, 'RFT') as UniqueRFTCollection;1762 }176317451764 /**1746 /**1765 * Mint new token1747 * Mint new token