You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[utils] toWei accepts fractional wei and returns wrong values #10209
Wei's raw value is '1', so value.length - 1 is 0, which is the correct precision for the base unit. The || 1 fallback then turns that 0 into 1, so the fraction gets treated as one decimal place of a larger unit.
Activity