--- a/tests/src/.outdated/scheduler.test.ts +++ b/tests/src/.outdated/scheduler.test.ts @@ -54,7 +54,7 @@ }); itSub.ifWithPallets('Can delay a transfer of an owned token', [Pallets.Scheduler], async ({helper}) => { - const collection = await helper.nft.mintDefaultCollection(alice); + const collection = await helper.nft.mintCollection(alice, {tokenPrefix: 'schd'}); const token = await collection.mintToken(alice); const schedulerId = await helper.scheduler.makeScheduledId(); const blocksBeforeExecution = 4; @@ -104,7 +104,7 @@ }); itSub.ifWithPallets('Can cancel a scheduled operation which has not yet taken effect', [Pallets.Scheduler], async ({helper}) => { - const collection = await helper.nft.mintDefaultCollection(alice); + const collection = await helper.nft.mintCollection(alice, {tokenPrefix: 'schd'}); const token = await collection.mintToken(alice); const scheduledId = await helper.scheduler.makeScheduledId(); @@ -357,7 +357,7 @@ }); itSub.ifWithPallets("Can't overwrite a scheduled ID", [Pallets.Scheduler, Pallets.TestUtils], async ({helper}) => { - const collection = await helper.nft.mintDefaultCollection(alice); + const collection = await helper.nft.mintCollection(alice, {tokenPrefix: 'schd'}); const token = await collection.mintToken(alice); const scheduledId = await helper.scheduler.makeScheduledId(); @@ -387,7 +387,7 @@ }); itSub.ifWithPallets("Can't cancel a non-owned scheduled operation", [Pallets.Scheduler, Pallets.TestUtils], async ({helper}) => { - const collection = await helper.nft.mintDefaultCollection(alice); + const collection = await helper.nft.mintCollection(alice, {tokenPrefix: 'schd'}); const token = await collection.mintToken(alice); const scheduledId = await helper.scheduler.makeScheduledId(); --- 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 { - 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 { return await super.mintCollection(signer, collectionOptions, 'NFT') as UniqueNFTCollection; - } - - async mintDefaultCollection(signer: IKeyringPair): Promise { - return await super.mintDefaultCollection(signer, 'NFT') as UniqueNFTCollection; } /** @@ -1755,10 +1741,6 @@ */ async mintCollection(signer: TSigner, collectionOptions: ICollectionCreationOptions = {}): Promise { return await super.mintCollection(signer, collectionOptions, 'RFT') as UniqueRFTCollection; - } - - async mintDefaultCollection(signer: IKeyringPair): Promise { - return await super.mintDefaultCollection(signer, 'RFT') as UniqueRFTCollection; } /**