refactor: Use more scoped enums (#7086)

This commit is contained in:
Alex Kremer
2026-05-11 16:39:48 +01:00
committed by GitHub
parent 779b49cd93
commit cdee9a675c
379 changed files with 2771 additions and 2864 deletions

View File

@@ -16,7 +16,7 @@ class LedgerHeader_test : public beast::unit_test::Suite
using namespace test::jtx;
Env env{*this, envconfig(noAdmin)};
json::Value params{json::ObjectValue};
json::Value params{json::ValueType::Object};
params[jss::api_version] = 1;
params[jss::ledger_index] = "current";
auto const result = env.client().invoke("ledger_header", params)[jss::result];
@@ -33,7 +33,7 @@ class LedgerHeader_test : public beast::unit_test::Suite
using namespace test::jtx;
Env env{*this, envconfig(noAdmin)};
json::Value params{json::ObjectValue};
json::Value params{json::ValueType::Object};
params[jss::api_version] = 1;
params[jss::ledger_index] = "validated";
auto const result = env.client().invoke("ledger_header", params)[jss::result];
@@ -50,7 +50,7 @@ class LedgerHeader_test : public beast::unit_test::Suite
using namespace test::jtx;
Env env{*this, envconfig(noAdmin)};
json::Value params{json::ObjectValue};
json::Value params{json::ValueType::Object};
params[jss::api_version] = 2;
auto const result = env.client().invoke("ledger_header", params)[jss::result];
BEAST_EXPECT(result[jss::error] == "unknownCmd");