Skip to content

Commit

Permalink
test: remove web3 as any
Browse files Browse the repository at this point in the history
  • Loading branch information
CertainLach committed Nov 16, 2023
1 parent d9ca20a commit cc9eeb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js-packages/tests/eth/util/playgrounds/unique.dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 } {
Expand Down

0 comments on commit cc9eeb2

Please sign in to comment.