rusk
rusk copied to clipboard
rusk-wallet: Default value will not prevent a transaction from being signed
Describe the bug When doing a transfer/stake with a zero balance, the user should get a "balance too low" warning by default. Instead, now the user can use the default values to sign a transaction, which will obviously fail.
Only when the user fills in a value, will they get a warning by the wallet that they need to fill in a value in the range of 0.000000001-0. When using either 1 LUX or 0, the user is now blocked from continuing, which is not the case if the default value is selected.
To Reproduce
- Create a new wallet or address with a 0 balance
- Navigate to transfer or stake
- Use all default values to create a transaction
- The wallet will give you an error
- Now try again, and change the value to transfer, the wallet should block the creation of a transaction with a range based error message blocking input
Expected behaviour If the user has a zero balance, they should not be able to go through the process to begin with. They should be given a warning that their balance is too low to do the requested action.