-
Notifications
You must be signed in to change notification settings - Fork 614
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description
When doing rpc calls with number parameters, bigint values need to be stringified, so you'd write {amount: bigintAmount.toString()}.
This is unintuitive, and the types also don't allow this.
Suggested solution
Do the JSON.stringify with a visitor that converts bigint to string, and change the generated type for number values to numbe | bigint
Alternative
keep the status quo
Additional context
No response
Validations
- Follow our Code of Conduct
- Read the Contributing Guidelines.
- Read the docs.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request