Skip to content

@ethersproject/bignumber - is toJSON implementation correct? #2284

Answered by ricmoo
just-toby asked this question in Q&A
Discussion options

You must be logged in to vote

The _ indicates a private member, while the serialized form assumes nothing is private.

In v6, everything uses private members, so this becomes less an issue as there is no _hex anywhere. :))

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by just-toby
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants