Replies: 3 comments
-
when I use |
Beta Was this translation helpful? Give feedback.
-
Can you provide the values for |
Beta Was this translation helpful? Give feedback.
-
An IEEE754 JavaScript number can only handle numbers up to 53-bits wide. So, it cannot be converted to a number if it exceeds that. You will need to determine why you are trying to convert the value to a number, because you almost certainly want to retain those numbers as exact numbers regardless of your purpose... If you wish to perform maths on it, you should keep it as a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Ethers Version
5.7.2
Search Terms
No response
Describe the Problem
I use AbiCoder in utils to decode abi. Get the input object of the contract.
The BigNumber object in the input object obtained, when I use the toNumber or toString method, I will randomly get an error "value out of f range"
Code Snippet
Contract ABI
No response
Errors
Environment
node.js (v12 or newer)
Environment (Other)
No response
Beta Was this translation helpful? Give feedback.
All reactions