[RESOLVED] Create a number with value 2^255 #4731
Answered
by
luu-alex
CaledoniaProject
asked this question in
Q&A
-
I'm trying to create a number with value 2^255, but the following does not work:
How can I create the BN object? |
Beta Was this translation helpful? Give feedback.
Answered by
luu-alex
Jan 28, 2022
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nazarhussain
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
web3.utils.toBN(2).pow(web3.utils.toBN(255))