From cc9eeb2f3b2c037d19a241207dc4bd64716d1e45 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Thu, 16 Nov 2023 12:13:18 +0100 Subject: [PATCH] test: remove web3 as any --- js-packages/tests/eth/util/playgrounds/unique.dev.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js-packages/tests/eth/util/playgrounds/unique.dev.ts b/js-packages/tests/eth/util/playgrounds/unique.dev.ts index cf248ff7ec..0041fedaee 100644 --- a/js-packages/tests/eth/util/playgrounds/unique.dev.ts +++ b/js-packages/tests/eth/util/playgrounds/unique.dev.ts @@ -460,7 +460,7 @@ class EthAddressGroup extends EthGroupBase { fromCollectionId(collectionId: number): string { if(collectionId >= 0xffffffff || collectionId < 0) throw new Error('collectionId overflow'); - return (web3 as any).utils.toChecksumAddress(`0x17c4e6453cc49aaaaeaca894e6d9683e${collectionId.toString(16).padStart(8, '0')}`); + return web3.default.utils.toChecksumAddress(`0x17c4e6453cc49aaaaeaca894e6d9683e${collectionId.toString(16).padStart(8, '0')}`); } extractTokenId(address: string): { collectionId: number, tokenId: number } {