gardens-ui
gardens-ui copied to clipboard
Fields that take a number supports scientific notation
Fields that take a number generally accepts scientific notation (e.g. 1e18 or just e) and other "invalid" inputs such as "-10" and so on.
Areas affected:
- When supporting a proposal initially
- When creating a funding proposal
- When changing support
Low priority bug since the user will have to input this intentionally and transactions will revert in the case that the number is out of range (amount < 0 or amount > balance).
Credit to @anthonyoliai for reporting it on Discord first
Same issue in honeycomb as well
Hey @onbjerg,
-Founding proposal,
- for negative numbers when you loose the focus, the field is cleaned.
- for scientific notation this is what it shows
Should we clean the field as negative numbers?
Yes, it doesn't make sense to have an infinite request amount, the transaction will just revert. Sorry for the delayed response.
It was solved? Need help?
I made some tests to undestand, the test below pass.
Its look correct?
So if find some e or minus need be 0 value, right? Test which pass below
@0xGabi @famole