Fix nft_history error to match rippled (#635)

Fixes #633
This commit is contained in:
Alex Kremer
2023-05-15 11:28:24 +01:00
committed by GitHub
parent c8029255ba
commit d94fe4e7ab
2 changed files with 3 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ NFTHistoryHandler::process(NFTHistoryHandler::Input input, Context const& ctx) c
} }
if (minIndex > maxIndex) if (minIndex > maxIndex)
return Error{Status{RippledError::rpcINVALID_PARAMS, "invalidIndex"}}; return Error{Status{RippledError::rpcLGR_IDXS_INVALID}};
if (input.ledgerHash || input.ledgerIndex) if (input.ledgerHash || input.ledgerIndex)
{ {

View File

@@ -181,8 +181,8 @@ generateTestValuesForParametersTest()
"ledger_index_max": 11, "ledger_index_max": 11,
"ledger_index_min": 20 "ledger_index_min": 20
})", })",
"invalidParams", "lgrIdxsInvalid",
"invalidIndex"}, "Ledger indexes invalid."},
NFTHistoryParamTestCaseBundle{ NFTHistoryParamTestCaseBundle{
"LedgerIndexMaxMinAndLedgerIndex", "LedgerIndexMaxMinAndLedgerIndex",
R"({ R"({