git.delta.rocks / unique-network / refs/commits / 0a94ed067eb3

difftreelog

Fix eslint

Max Andreev2022-10-27parent: #9efdf39.patch.diff
in: master

2 files changed

modifiedtests/src/eth/util/playgrounds/unique.dev.tsdiffbeforeafterboth
188 return {collectionId, collectionAddress, events};188 return {collectionId, collectionAddress, events};
189 }189 }
190190
191 async createNFTCollection(signer: string, name: string, description: string, tokenPrefix: string): Promise<{ collectionId: number, collectionAddress: string, events: NormalizedEvent[] }> {191 createNFTCollection(signer: string, name: string, description: string, tokenPrefix: string): Promise<{ collectionId: number, collectionAddress: string, events: NormalizedEvent[] }> {
192 return this.createCollecion('createNFTCollection', signer, name, description, tokenPrefix);192 return this.createCollecion('createNFTCollection', signer, name, description, tokenPrefix);
193 }193 }
194194
202 return {collectionId, collectionAddress, events};202 return {collectionId, collectionAddress, events};
203 }203 }
204204
205 async createRFTCollection(signer: string, name: string, description: string, tokenPrefix: string): Promise<{collectionId: number, collectionAddress: string, events: NormalizedEvent[]}> {205 createRFTCollection(signer: string, name: string, description: string, tokenPrefix: string): Promise<{collectionId: number, collectionAddress: string, events: NormalizedEvent[]}> {
206 return this.createCollecion('createRFTCollection', signer, name, description, tokenPrefix);206 return this.createCollecion('createRFTCollection', signer, name, description, tokenPrefix);
207 }207 }
208208
modifiedtests/src/util/playgrounds/unique.dev.tsdiffbeforeafterboth
--- a/tests/src/util/playgrounds/unique.dev.ts
+++ b/tests/src/util/playgrounds/unique.dev.ts
@@ -428,7 +428,7 @@
     });
   }
 
-  async noScheduledTasks() {
+  noScheduledTasks() {
     const api = this.helper.getApi();
     
     // eslint-disable-next-line no-async-promise-executor
@@ -446,7 +446,7 @@
     return promise;
   }
 
-  async event(maxBlocksToWait: number, eventSection: string, eventMethod: string) {
+  event(maxBlocksToWait: number, eventSection: string, eventMethod: string) {
     // eslint-disable-next-line no-async-promise-executor
     const promise = new Promise<EventRecord | null>(async (resolve) => {
       const unsubscribe = await this.helper.getApi().rpc.chain.subscribeNewHeads(async header => {