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

@@ -437,7 +437,7 @@ private:
env(offer(dan, XRP(500), eth(50'000'000'000'000)));
env.close();
json::Value jtp{json::ArrayValue};
json::Value jtp{json::ValueType::Array};
jtp[0u][0u][jss::currency] = "XRP";
env(pay(alice_, bob_, eth(30'000'000'000'000)),
Json(jss::Paths, jtp),
@@ -621,7 +621,7 @@ private:
env.current()->read(keylet::account(bob_.id()))->getFieldU32(sfSequence);
payment[jss::tx_json][jss::Fee] = to_string(env.current()->fees().base);
payment[jss::tx_json][jss::SendMax] =
xts(15'000'000'000'000).value().getJson(JsonOptions::KNone);
xts(15'000'000'000'000).value().getJson(JsonOptions::Values::None);
payment[jss::tx_json][jss::Flags] = tfPartialPayment;
auto const jrr = env.rpc("json", "submit", to_string(payment));
BEAST_EXPECT(jrr[jss::result][jss::status] == "success");