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:
@@ -27,7 +27,7 @@ namespace jtx {
|
||||
void
|
||||
delivermin::operator()(Env& env, JTx& jt) const
|
||||
{
|
||||
jt.jv[jss::DeliverMin] = amount_.getJson(0);
|
||||
jt.jv[jss::DeliverMin] = amount_.getJson(JsonOptions::none);
|
||||
}
|
||||
|
||||
} // jtx
|
||||
|
||||
@@ -32,7 +32,7 @@ fee::operator()(Env&, JTx& jt) const
|
||||
jt.fill_fee = false;
|
||||
if (amount_)
|
||||
jt[jss::Fee] =
|
||||
amount_->getJson(0);
|
||||
amount_->getJson(JsonOptions::none);
|
||||
}
|
||||
|
||||
} // jtx
|
||||
|
||||
@@ -30,8 +30,8 @@ offer (Account const& account,
|
||||
{
|
||||
Json::Value jv;
|
||||
jv[jss::Account] = account.human();
|
||||
jv[jss::TakerPays] = in.getJson(0);
|
||||
jv[jss::TakerGets] = out.getJson(0);
|
||||
jv[jss::TakerPays] = in.getJson(JsonOptions::none);
|
||||
jv[jss::TakerGets] = out.getJson(JsonOptions::none);
|
||||
if (flags)
|
||||
jv[jss::Flags] = flags;
|
||||
jv[jss::TransactionType] = jss::OfferCreate;
|
||||
|
||||
@@ -50,7 +50,7 @@ paths::operator()(Env& env, JTx& jt) const
|
||||
// VFALCO TODO API to allow caller to examine the STPathSet
|
||||
// VFALCO isDefault should be renamed to empty()
|
||||
if (! found.isDefault())
|
||||
jv[jss::Paths] = found.getJson(0);
|
||||
jv[jss::Paths] = found.getJson(JsonOptions::none);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -33,7 +33,7 @@ pay (Account const& account,
|
||||
amount.to(to);
|
||||
Json::Value jv;
|
||||
jv[jss::Account] = account.human();
|
||||
jv[jss::Amount] = amount.value.getJson(0);
|
||||
jv[jss::Amount] = amount.value.getJson(JsonOptions::none);
|
||||
jv[jss::Destination] = to.human();
|
||||
jv[jss::TransactionType] = jss::Payment;
|
||||
jv[jss::Flags] = tfUniversal;
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace jtx {
|
||||
void
|
||||
sendmax::operator()(Env& env, JTx& jt) const
|
||||
{
|
||||
jt.jv[jss::SendMax] = amount_.getJson(0);
|
||||
jt.jv[jss::SendMax] = amount_.getJson(JsonOptions::none);
|
||||
}
|
||||
|
||||
} // jtx
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user