git.delta.rocks / unique-network / refs/commits / 2fb1f776e4b9

difftreelog

fix remove mintDefaultCollection

Daniel Shiposha2022-09-14parent: #bd337d6.patch.diff
in: master

2 files changed

modifiedtests/src/.outdated/scheduler.test.tsdiffbeforeafterboth
54 });54 });
5555
56 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 });
105105
106 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);
109109
110 const scheduledId = await helper.scheduler.makeScheduledId();110 const scheduledId = await helper.scheduler.makeScheduledId();
357 });357 });
358358
359 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);
362362
363 const scheduledId = await helper.scheduler.makeScheduledId();363 const scheduledId = await helper.scheduler.makeScheduledId();
387 });387 });
388388
389 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);
392392
393 const scheduledId = await helper.scheduler.makeScheduledId();393 const scheduledId = await helper.scheduler.makeScheduledId();
modifiedtests/src/util/playgrounds/unique.tsdiffbeforeafterboth
--- a/tests/src/util/playgrounds/unique.ts
+++ b/tests/src/util/playgrounds/unique.ts
@@ -1373,16 +1373,6 @@
     return this.getCollectionObject(this.helper.util.extractCollectionIdFromCreationResult(creationResult));
   }
 
-  async mintDefaultCollection(signer: TSigner, mode: 'NFT' | 'RFT'): Promise<UniqueCollectionBase> {
-    const defaultCreateCollectionParams: ICollectionCreationOptions = {
-      description: 'description',
-      name: 'name',
-      tokenPrefix: 'prfx',
-    };
-
-    return this.mintCollection(signer, defaultCreateCollectionParams, mode);
-  }
-
   getCollectionObject(_collectionId: number): any {
     return null;
   }
@@ -1565,10 +1555,6 @@
    */
   async mintCollection(signer: TSigner, collectionOptions: ICollectionCreationOptions = {}): Promise<UniqueNFTCollection> {
     return await super.mintCollection(signer, collectionOptions, 'NFT') as UniqueNFTCollection;
-  }
-
-  async mintDefaultCollection(signer: IKeyringPair): Promise<UniqueNFTCollection> {
-    return await super.mintDefaultCollection(signer, 'NFT') as UniqueNFTCollection;
   }
 
   /**
@@ -1755,10 +1741,6 @@
    */
   async mintCollection(signer: TSigner, collectionOptions: ICollectionCreationOptions = {}): Promise<UniqueRFTCollection> {
     return await super.mintCollection(signer, collectionOptions, 'RFT') as UniqueRFTCollection;
-  }
-
-  async mintDefaultCollection(signer: IKeyringPair): Promise<UniqueRFTCollection> {
-    return await super.mintDefaultCollection(signer, 'RFT') as UniqueRFTCollection;
   }
 
   /**