Fix ledger_entry error code (#891)

Fix #896
This commit is contained in:
cyan317
2023-10-05 18:11:42 +01:00
committed by GitHub
parent 0b5f667e4a
commit 59eb40a1f2
2 changed files with 7 additions and 7 deletions

View File

@@ -83,8 +83,8 @@ LedgerEntryHandler::process(LedgerEntryHandler::Input input, Context const& ctx)
{
// Must specify 1 of the following fields to indicate what type
if (ctx.apiVersion == 1)
return Error{Status{RippledError::rpcINVALID_PARAMS}};
return Error{Status{ClioError::rpcUNKNOWN_OPTION}};
return Error{Status{ClioError::rpcUNKNOWN_OPTION}};
return Error{Status{RippledError::rpcINVALID_PARAMS}};
}
// check ledger exists