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
Since value may still be a big number, it should be represented as a string and not a number type.
For reference, ethers.utils.parseUnits(1, 'ether') throws and ethers.utils.parseUnits('1', 'ether') succeeds.
The text was updated successfully, but these errors were encountered:
It actually used to be a string (under various earlier variable names e.g. priorityFeeSchema), but no one had a strong preference, see here for the discussion in which you comment: #890 (comment)
This is how amounts are represented
Since
value
may still be a big number, it should be represented as a string and not a number type.For reference,
ethers.utils.parseUnits(1, 'ether')
throws andethers.utils.parseUnits('1', 'ether')
succeeds.The text was updated successfully, but these errors were encountered: