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:
@@ -340,7 +340,7 @@ class LedgerRPC_test : public beast::unit_test::suite
|
||||
{
|
||||
Json::Value jv;
|
||||
jv[sfAccount.jsonName] = account.human();
|
||||
jv[sfSendMax.jsonName] = sendMax.getJson(0);
|
||||
jv[sfSendMax.jsonName] = sendMax.getJson(JsonOptions::none);
|
||||
jv[sfDestination.jsonName] = dest.human();
|
||||
jv[sfTransactionType.jsonName] = jss::CheckCreate;
|
||||
jv[sfFlags.jsonName] = tfUniversal;
|
||||
@@ -665,7 +665,7 @@ class LedgerRPC_test : public beast::unit_test::suite
|
||||
jv[jss::Flags] = tfUniversal;
|
||||
jv[jss::Account] = account.human();
|
||||
jv[jss::Destination] = to.human();
|
||||
jv[jss::Amount] = amount.getJson(0);
|
||||
jv[jss::Amount] = amount.getJson(JsonOptions::none);
|
||||
jv[sfFinishAfter.jsonName] =
|
||||
cancelAfter.time_since_epoch().count() + 2;
|
||||
return jv;
|
||||
@@ -853,7 +853,7 @@ class LedgerRPC_test : public beast::unit_test::suite
|
||||
jv[jss::TransactionType] = jss::PaymentChannelCreate;
|
||||
jv[jss::Account] = account.human();
|
||||
jv[jss::Destination] = to.human();
|
||||
jv[jss::Amount] = amount.getJson (0);
|
||||
jv[jss::Amount] = amount.getJson (JsonOptions::none);
|
||||
jv[sfSettleDelay.jsonName] = settleDelay.count();
|
||||
jv[sfPublicKey.jsonName] = strHex (pk.slice());
|
||||
return jv;
|
||||
|
||||
Reference in New Issue
Block a user