Skip to content

Can I use v5 BigNumber in v6? #3860

Answered by ricmoo
Cazs03 asked this question in Q&A
Mar 5, 2023 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

You cannot mix-and-match v5 and v6; it is a major version change and they are incompatible. There is no longer a BigNumber class and you should be using ES2020 BigInt in v6: MAX_UINT128 = (2n ** 128n) - 1n

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Cazs03
Comment options

@ricmoo
Comment options

@Cazs03
Comment options

@ricmoo
Comment options

Answer selected by Cazs03
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
Converted from issue

This discussion was converted from issue #3859 on March 05, 2023 19:36.