mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Add JsonOptions enum class to contain options passed to getJSON methods
This commit is contained in:
@@ -237,9 +237,10 @@ public:
|
||||
params[jss::command] = "ripple_path_find";
|
||||
params[jss::source_account] = toBase58 (src);
|
||||
params[jss::destination_account] = toBase58 (dst);
|
||||
params[jss::destination_amount] = saDstAmount.getJson(0);
|
||||
params[jss::destination_amount] =
|
||||
saDstAmount.getJson(JsonOptions::none);
|
||||
if(saSendMax)
|
||||
params[jss::send_max] = saSendMax->getJson(0);
|
||||
params[jss::send_max] = saSendMax->getJson(JsonOptions::none);
|
||||
if(saSrcCurrency)
|
||||
{
|
||||
auto& sc = params[jss::source_currencies] = Json::arrayValue;
|
||||
@@ -803,7 +804,7 @@ public:
|
||||
})", jv);
|
||||
|
||||
auto const jv_l = env.le(keylet::line(Account("bob").id(),
|
||||
Account("alice")["USD"].issue()))->getJson(0);
|
||||
Account("alice")["USD"].issue()))->getJson(JsonOptions::none);
|
||||
for (auto it = jv.begin(); it != jv.end(); ++it)
|
||||
BEAST_EXPECT(*it == jv_l[it.memberName()]);
|
||||
}
|
||||
@@ -842,7 +843,7 @@ public:
|
||||
})", jv);
|
||||
|
||||
auto const jv_l = env.le(keylet::line(Account("bob").id(),
|
||||
Account("alice")["USD"].issue()))->getJson(0);
|
||||
Account("alice")["USD"].issue()))->getJson(JsonOptions::none);
|
||||
for (auto it = jv.begin(); it != jv.end(); ++it)
|
||||
BEAST_EXPECT(*it == jv_l[it.memberName()]);
|
||||
|
||||
@@ -890,7 +891,7 @@ public:
|
||||
})", jv);
|
||||
|
||||
auto const jv_l = env.le(keylet::line(Account("alice").id(),
|
||||
Account("bob")["USD"].issue()))->getJson(0);
|
||||
Account("bob")["USD"].issue()))->getJson(JsonOptions::none);
|
||||
for (auto it = jv.begin(); it != jv.end(); ++it)
|
||||
BEAST_EXPECT(*it == jv_l[it.memberName()]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user