Fix unit test api_version to enable api_version 2 (#4785)

The command line API still uses `apiMaximumSupportedVersion`.
The unit test RPCs use `apiMinimumSupportedVersion` if unspecified.

Context:
- #4568
- #4552
This commit is contained in:
pwang200
2023-11-02 12:59:19 -04:00
committed by GitHub
parent 85342b21c8
commit 056255e396
6 changed files with 68 additions and 40 deletions

View File

@@ -21,6 +21,7 @@
#include <ripple/protocol/ErrorCodes.h>
#include <ripple/rpc/impl/RPCHelpers.h>
#include <test/jtx.h>
#include <test/jtx/utility.h>
#include <boost/algorithm/string.hpp>
#include <initializer_list>
@@ -6442,7 +6443,7 @@ public:
Json::Value got;
try
{
got = cmdLineToJSONRPC(args, env.journal);
got = jtx::cmdToJSONRPC(args, env.journal);
}
catch (std::bad_cast const&)
{