This repository was archived by the owner on Mar 5, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
web3.utils.toWei(amount, ether)
fix required when decimals in input are overflown.
#7044
Comments
|
gordon-to
added a commit
to gordon-to/web3.js
that referenced
this issue
May 17, 2024
gordon-to
added a commit
to gordon-to/web3.js
that referenced
this issue
May 17, 2024
17 tasks
web3.utils.toWei(amount, ether)
giving incorrect and dangerously large value when decimals in input are overflown.web3.utils.toWei(amount, ether)
fix required when decimals in input are overflown.
gordon-to
added a commit
to gordon-to/web3.js
that referenced
this issue
May 17, 2024
gordon-to
added a commit
to gordon-to/web3.js
that referenced
this issue
May 17, 2024
Thanks @hammersharkfish. We are currently working on this. |
gordon-to
added a commit
to gordon-to/web3.js
that referenced
this issue
May 21, 2024
luu-alex
pushed a commit
that referenced
this issue
May 21, 2024
Merged
This was referenced Jul 17, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
MRE :
Output:
1123456789123456789123 string
.This output is equivalent to
1123.456789123456789123 ether
while we provided1.123456789123456789123
as input .The text was updated successfully, but these errors were encountered: