validate empty input in send command
This commit is contained in:
parent
6d333bfed7
commit
29968b2ff3
|
@ -262,6 +262,17 @@ status.command({
|
|||
});
|
||||
|
||||
function validateBalance(params) {
|
||||
if(!params.value){
|
||||
return {
|
||||
errors: [
|
||||
status.components.validationMessage(
|
||||
"Amount",
|
||||
"Amount must be specified"
|
||||
)
|
||||
]
|
||||
};
|
||||
}
|
||||
|
||||
try {
|
||||
var val = web3.toWei(params.value, "ether");
|
||||
} catch (err) {
|
||||
|
|
Loading…
Reference in New Issue