diff --git a/src/rpc/handlers/AccountTx.cpp b/src/rpc/handlers/AccountTx.cpp index 3fff7ac9..e42e5dcc 100644 --- a/src/rpc/handlers/AccountTx.cpp +++ b/src/rpc/handlers/AccountTx.cpp @@ -47,7 +47,7 @@ AccountTxHandler::process(AccountTxHandler::Input input, Context const& ctx) con } if (minIndex > maxIndex) - return Error{Status{RippledError::rpcLGR_IDXS_INVALID}}; + return Error{Status{RippledError::rpcINVALID_LGR_RANGE}}; if (input.ledgerHash || input.ledgerIndex || input.usingValidatedLedger) { diff --git a/unittests/rpc/handlers/AccountTxTest.cpp b/unittests/rpc/handlers/AccountTxTest.cpp index dcdf590e..6910d30b 100644 --- a/unittests/rpc/handlers/AccountTxTest.cpp +++ b/unittests/rpc/handlers/AccountTxTest.cpp @@ -179,8 +179,8 @@ generateTestValuesForParametersTest() "ledger_index_max": 11, "ledger_index_min": 20 })", - "lgrIdxsInvalid", - "Ledger indexes invalid."}, + "invalidLgrRange", + "Ledger range is invalid."}, AccountTxParamTestCaseBundle{ "LedgerIndexMaxMinAndLedgerIndex", R"({