From 734c7a5c364e8fe42602edebd008edc4d6465a42 Mon Sep 17 00:00:00 2001 From: Francis Mendoza Date: Wed, 26 Oct 2022 11:14:40 -0700 Subject: [PATCH] Return malformedOwner for deposit_preauth.owner in ledger_entry (#345) Fixes #273 --- src/rpc/handlers/LedgerEntry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpc/handlers/LedgerEntry.cpp b/src/rpc/handlers/LedgerEntry.cpp index 31d3ab3b..a3eb3c82 100644 --- a/src/rpc/handlers/LedgerEntry.cpp +++ b/src/rpc/handlers/LedgerEntry.cpp @@ -78,7 +78,7 @@ doLedgerEntry(Context const& context) .at(JS(owner)) .is_string()) { - return Status{Error::rpcINVALID_PARAMS, "ownerNotString"}; + return Status{Error::rpcINVALID_PARAMS, "malformedOwner"}; } else if ( !request.at(JS(deposit_preauth))