-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
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
Improve ethers.utils.parseUnits error message #981
Comments
The value must be a string... if it worked in v4, that was probably a bug... Numbers are not safe to use in parseUnits as arithmetic underflow could occur. The string |
You're right. Thanks for the quick answer! |
|
That’s is a completely fair ask. I’m in the midst of moving this week, but will get to this soon. :) |
This has been fixed in 5.0.17. If you have any problems, please let me know. Thanks! :) |
Thanks Ric. I believe it's going to help some Devs. |
helped me a ton |
This is helpful. I appreciate alot |
Getting this error:
ethers-5.0.umd.min.js:1 Uncaught Error: invalid decimal value (argument="value", value=1, code=INVALID_ARGUMENT, version=bignumber/5.0.5)
in this statement
The text was updated successfully, but these errors were encountered: