Replies: 1 comment
-
const hexstr = "0x5fa2358263196dbbf23d1ca7a509451f7a2f64c15837bfbb81298b1e3e24e4fa"; // utils.keccak256('0x12')
const bn = ethers.BigNumber.from(hexstr); The above gives you a BigNumber. |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I have a hash string output from utils.keccak256 and want to convert it to a BigNumber.
Beta Was this translation helpful? Give feedback.
All reactions