mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-27 09:00:32 +00:00
refactor: Use more scoped enums (#7086)
This commit is contained in:
@@ -55,7 +55,7 @@ class Ticket_test : public beast::unit_test::Suite
|
||||
{
|
||||
using namespace std::string_literals;
|
||||
|
||||
json::Value const& tx{env.tx()->getJson(JsonOptions::KNone)};
|
||||
json::Value const& tx{env.tx()->getJson(JsonOptions::Values::None)};
|
||||
{
|
||||
std::string const txType = tx[sfTransactionType.jsonName].asString();
|
||||
|
||||
@@ -71,7 +71,7 @@ class Ticket_test : public beast::unit_test::Suite
|
||||
std::uint32_t const txSeq = {tx[sfSequence.jsonName].asUInt()};
|
||||
std::string const account = tx[sfAccount.jsonName].asString();
|
||||
|
||||
json::Value const& metadata = env.meta()->getJson(JsonOptions::KNone);
|
||||
json::Value const& metadata = env.meta()->getJson(JsonOptions::Values::None);
|
||||
if (!BEAST_EXPECTS(
|
||||
metadata.isMember(sfTransactionResult.jsonName) &&
|
||||
metadata[sfTransactionResult.jsonName].asString() == "tesSUCCESS",
|
||||
@@ -241,7 +241,7 @@ class Ticket_test : public beast::unit_test::Suite
|
||||
void
|
||||
checkTicketConsumeMeta(test::jtx::Env& env)
|
||||
{
|
||||
json::Value const& tx{env.tx()->getJson(JsonOptions::KNone)};
|
||||
json::Value const& tx{env.tx()->getJson(JsonOptions::Values::None)};
|
||||
|
||||
// Verify that the transaction includes a TicketSequence.
|
||||
|
||||
@@ -274,7 +274,7 @@ class Ticket_test : public beast::unit_test::Suite
|
||||
|
||||
std::uint32_t const ticketSeq{tx[sfTicketSequence.jsonName].asUInt()};
|
||||
|
||||
json::Value const& metadata{env.meta()->getJson(JsonOptions::KNone)};
|
||||
json::Value const& metadata{env.meta()->getJson(JsonOptions::Values::None)};
|
||||
if (!BEAST_EXPECTS(
|
||||
metadata.isMember(sfTransactionResult.jsonName),
|
||||
"Metadata is missing TransactionResult."))
|
||||
@@ -783,7 +783,7 @@ class Ticket_test : public beast::unit_test::Suite
|
||||
|
||||
// Create a noop transaction using a TicketSequence but don't fill
|
||||
// in the Sequence field.
|
||||
json::Value tx = json::ObjectValue;
|
||||
json::Value tx = json::ValueType::Object;
|
||||
tx[jss::tx_json] = noop(alice);
|
||||
tx[jss::tx_json][sfTicketSequence.jsonName] = ticketSeq;
|
||||
tx[jss::secret] = toBase58(generateSeed("alice"));
|
||||
@@ -816,7 +816,7 @@ class Ticket_test : public beast::unit_test::Suite
|
||||
|
||||
// Create a noop transaction using a TicketSequence but don't fill
|
||||
// in the Sequence field.
|
||||
json::Value tx = json::ObjectValue;
|
||||
json::Value tx = json::ValueType::Object;
|
||||
tx[jss::tx_json] = noop(alice);
|
||||
tx[jss::tx_json][sfTicketSequence.jsonName] = ticketSeq + 1;
|
||||
tx[jss::secret] = toBase58(generateSeed("alice"));
|
||||
|
||||
Reference in New Issue
Block a user