ChainId is typed as "number", but is returned as "string"
Describe the bug
The type for chainId is number, but it's actually returned as a string.
SDK Version (if relevant)
- Client: JS
- Version 1.7.1
To Reproduce Steps to reproduce the behavior:
- Switch networks and log the
typeofon chainId - Comes back as a string, not a number
Expected behavior Type to be string (or return value to be a number)
Desktop (please complete the following information):
- OS: MacOS
- Browser Chrome
- Version 101.0.4951.41
Try using the latest v1.7.8, and let me know what happens
Still the same type: chainId: number; in index.d.ts
Package version: "version": "1.7.8",
@TheDutchCoder is this still an issue?
I no longer work with WalletConnect so I can't verify this issue anymore, sorry.
@TheDutchCoder no problem, thanks for the reply.