From 01e7dd26f22d30af2befc5741976b3fa43f0465d Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Tue, 26 Jan 2021 07:52:40 +0000 Subject: [PATCH] style: fix tslint warnings --- --- a/tests/src/util/helpers.ts +++ b/tests/src/util/helpers.ts @@ -254,8 +254,9 @@ } export async function findNotExistingCollection(api: ApiPromise): Promise { - let collection: number = parseInt((await api.query.nft.createdCollectionCount()).toString()) as unknown as number + 1; - return collection; + const totalNumber = parseInt((await api.query.nft.createdCollectionCount()).toString(), 10) as unknown as number; + const newCollection: number = totalNumber + 1; + return newCollection; } function getDestroyResult(events: EventRecord[]): boolean { -- gitstuff