make sure amount is specified for move.

This commit is contained in:
Christopher Jeffrey 2014-11-12 15:53:14 -08:00
parent 6c9b005cd1
commit b6207b907f

View File

@ -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