You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes the chainId might be larger than a number, so I was wondering whether it would be possible to also support string and bigint (or maybe just string) for that field.
I have seen in another "famous library" (:p) that the type for chainId is number | bigint | string | null.
Thanks in advance.
Expected Behavior
I can pass a string as chainId. Specifically, I would like to be able to pass these values:
Check existing issues
Viem Version
2.21.45
Current Behavior
Currently the
TypedDataDomain
looks like this:Sometimes the
chainId
might be larger than anumber
, so I was wondering whether it would be possible to also supportstring
andbigint
(or maybe juststring
) for that field.I have seen in another "famous library" (:p) that the type for
chainId
isnumber | bigint | string | null
.Thanks in advance.
Expected Behavior
I can pass a
string
aschainId
. Specifically, I would like to be able to pass these values:14018334920824264832118464179726739019961432051877733167310318607178
1176455790972829965191905223412607679856028701100105089447013101863
20257036855429895315704288894496386224204271168750785572924599986678
Steps To Reproduce
No response
Link to Minimal Reproducible Example
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: