make sure amount is specified for move.
This commit is contained in:
parent
6c9b005cd1
commit
b6207b907f
@ -3640,6 +3640,8 @@ NAN_METHOD(WalletMove) {
|
||||
CAmount nAmount;
|
||||
if (options->Get(NanNew<String>("amount"))->IsNumber()) {
|
||||
nAmount = (CAmount)options->Get(NanNew<String>("amount"))->IntegerValue();
|
||||
} else {
|
||||
return NanThrowError("No amount specified.");
|
||||
}
|
||||
|
||||
// DEPRECATED
|
||||
|
||||
Loading…
Reference in New Issue
Block a user