-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EIP712 - Cannot pass a string as chainId
#256
Comments
What chain IDs are these? |
Hi @tmm , Thanks for coming back to me! Those IDs are the values used by VeChain as Internally they are the Genesis Block ID since there is no native
I work for VeChain. Any further input you need just let me know, thanks for your help! |
This issue has been locked since it has been closed for more than 14 days. If you found a concrete bug or regression related to it, please open a new bug report with a reproduction against the latest ABIType version. If you have any questions or comments you can create a new discussion thread. |
Describe the bug
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. In the spec the attribute is expected to be anuint256
.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
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
The text was updated successfully, but these errors were encountered: