Replies: 1 comment
-
There is no reasoning for this. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Check existing issues
Viem Version
2.9.27
Current Behavior
the chain id is typed as a
number
.Expected Behavior
the chainId is specified as a uint256 and should therefore be a
bigint
. I understand that it's unlikely a developer will create a chainId large enough require uint256, but I'm mostly curious what the reasoning here is, or if there is a specification that I'm missing. handling the up and downcasts when passing chainIds around as params is not a huge deal in and of itself but if I'm creating a higher level sdk I'd like to understand how this is intended to be handled.Steps To Reproduce
No response
Link to Minimal Reproducible Example
No response
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions