We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When I try to convert hex to number at the value
Web3.utils.hexToNumber("0000000000000000000000000000000000000000000000000000000000000010");
I got:
10
It should be 16 for the correct convert.
The text was updated successfully, but these errors were encountered:
Depends on: https://github.com/SilentCicero/number-to-bn
I'm in contact with Nick Dodson.
Sorry, something went wrong.
This is still broken. https://github.com/SilentCicero/number-to-bn has not changed in 2 years. Any alternative?
Will check if there is a similar module which is maintained. Otherwise, I will implement it on my own. @ripern
This got already fixed in v1.2.2.
Example:
console.log(utils.hexToNumber("0x0000000000000000000000000000000000000000000000000000000000000010")); > 16
nivida
No branches or pull requests
When I try to convert hex to number at the value
Web3.utils.hexToNumber("0000000000000000000000000000000000000000000000000000000000000010");
I got:
10
It should be 16 for the correct convert.
The text was updated successfully, but these errors were encountered: