Return malformedOwner for deposit_preauth.owner in ledger_entry (#345)

Fixes #273
This commit is contained in:
Francis Mendoza
2022-10-26 11:14:40 -07:00
committed by GitHub
parent b17ef28f55
commit 734c7a5c36

View File

@@ -78,7 +78,7 @@ doLedgerEntry(Context const& context)
.at(JS(owner)) .at(JS(owner))
.is_string()) .is_string())
{ {
return Status{Error::rpcINVALID_PARAMS, "ownerNotString"}; return Status{Error::rpcINVALID_PARAMS, "malformedOwner"};
} }
else if ( else if (
!request.at(JS(deposit_preauth)) !request.at(JS(deposit_preauth))