git.delta.rocks / unique-network / refs/commits / cc9eeb2f3b2c

difftreelog

test remove web3 as any

Yaroslav Bolyukin2023-11-16parent: #d9ca20a.patch.diff
in: master

1 file changed

modifiedjs-packages/tests/eth/util/playgrounds/unique.dev.tsdiffbeforeafterboth
460460
461 fromCollectionId(collectionId: number): string {461 fromCollectionId(collectionId: number): string {
462 if(collectionId >= 0xffffffff || collectionId < 0) throw new Error('collectionId overflow');462 if(collectionId >= 0xffffffff || collectionId < 0) throw new Error('collectionId overflow');
463 return (web3 as any).utils.toChecksumAddress(`0x17c4e6453cc49aaaaeaca894e6d9683e${collectionId.toString(16).padStart(8, '0')}`);463 return web3.default.utils.toChecksumAddress(`0x17c4e6453cc49aaaaeaca894e6d9683e${collectionId.toString(16).padStart(8, '0')}`);
464 }464 }
465465
466 extractTokenId(address: string): { collectionId: number, tokenId: number } {466 extractTokenId(address: string): { collectionId: number, tokenId: number } {