difftreelog
feat add findNotExistingCollection
in: master
Cherry-picked from NFTPAR-255
1 file changed
tests/src/util/helpers.tsdiffbeforeafterboth253 return unused;253 return unused;254}254}255256export async function findNotExistingCollection(api: ApiPromise): Promise<number> {257 const totalNumber = parseInt((await api.query.nft.createdCollectionCount()).toString(), 10) as unknown as number;258 const newCollection: number = totalNumber + 1;259 return newCollection;260}255261256function getDestroyResult(events: EventRecord[]): boolean {262function getDestroyResult(events: EventRecord[]): boolean {257 let success: boolean = false;263 let success: boolean = false;