metamask-extension
metamask-extension copied to clipboard
[Bug]: I am able to input negative values to tx amount. Error: new BigNumber() not a base 16 number
Describe the bug
Problem: when I am Sending a tx I can introduce negative numbers by pressing the down arrow of my keyboard. This eventually leads to a tx with 0 value. I guess input should be validated and if negative, we should not be able to proceed to the Confirmation Screen.
The error Uncaught (in promise) BigNumber Error: new BigNumber() not a base 16 number: appears on the console.
https://user-images.githubusercontent.com/54408225/182885986-d86de6f6-6e74-45c6-87fe-c662d5923904.mp4
Steps to reproduce
- Unlock MM
- Click Send
- Introduce any recipient
- Click Amount and input a random number
- Press down arrow key for a couple of times
Error messages or log output
Uncaught (in promise) BigNumber Error: new BigNumber() not a base 16 number:
No response
Version
10.18.2
Build type
No response
Browser
Chrome
Operating system
Linux
Hardware wallet
No response
Additional context
No response