Describe the bug
Currently the TypedDataDomain looks like this:
export type TypedDataDomain = {
chainId?: number | undefined
name?: string | undefined
salt?: ResolvedRegister['bytesType']['outputs'] | undefined
verifyingContract?: Address | undefined
version?: string | undefined
}
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. In the spec the attribute is expected to be an uint256.
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:
14018334920824264832118464179726739019961432051877733167310318607178
1176455790972829965191905223412607679856028701100105089447013101863
20257036855429895315704288894496386224204271168750785572924599986678
Link to Minimal Reproducible Example
No response
Steps To Reproduce
No response
Package Version
1.0.6
TypeScript Version
5.6.3
Check existing issues
Anything else?
No response
Describe the bug
Currently the
TypedDataDomainlooks like this:Sometimes the
chainIdmight be larger than anumber, so I was wondering whether it would be possible to also supportstringandbigint(or maybe juststring) for that field. In the spec the attribute is expected to be anuint256.I have seen in another "famous library" (:p) that the type for
chainIdisnumber | bigint | string | null.Thanks in advance.
Expected Behavior
I can pass a
stringaschainId. Specifically, I would like to be able to pass these values:14018334920824264832118464179726739019961432051877733167310318607178117645579097282996519190522341260767985602870110010508944701310186320257036855429895315704288894496386224204271168750785572924599986678Link to Minimal Reproducible Example
No response
Steps To Reproduce
No response
Package Version
1.0.6
TypeScript Version
5.6.3
Check existing issues
Anything else?
No response