Add JsonOptions enum class to contain options passed to getJSON methods

This commit is contained in:
Mo Morsi
2019-06-08 01:10:33 -04:00
committed by Manoj doshi
parent c2138c4e88
commit f8365f5009
77 changed files with 382 additions and 270 deletions

View File

@@ -36,7 +36,7 @@ trust (Account const& account,
"trust() requires IOU");
Json::Value jv;
jv[jss::Account] = account.human();
jv[jss::LimitAmount] = amount.getJson(0);
jv[jss::LimitAmount] = amount.getJson(JsonOptions::none);
jv[jss::TransactionType] = jss::TrustSet;
jv[jss::Flags] = flags;
return jv;
@@ -54,7 +54,7 @@ trust (Account const& account,
Json::Value jv;
jv[jss::Account] = account.human();
{
auto& ja = jv[jss::LimitAmount] = amount.getJson(0);
auto& ja = jv[jss::LimitAmount] = amount.getJson(JsonOptions::none);
ja[jss::issuer] = peer.human();
}
jv[jss::TransactionType] = jss::TrustSet;