From 73805d44ad1cd10190ec54dafbcbcf26663d8e1b Mon Sep 17 00:00:00 2001 From: cyan317 <120398799+cindyyan317@users.noreply.github.com> Date: Mon, 10 Jul 2023 13:41:11 +0100 Subject: [PATCH] account_tx rpcLGR_IDXS_INVALID adapt to v2 (#749) Fixes #748 --- src/rpc/handlers/AccountTx.cpp | 2 +- unittests/rpc/handlers/AccountTxTest.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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"({