mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-23 15:20:54 +00:00
refactor: Enable clang-tidy readability-identifier-naming check (#6571)
This commit is contained in:
@@ -14,14 +14,14 @@
|
||||
|
||||
namespace xrpl::test::jtx {
|
||||
|
||||
Json::Value
|
||||
json::Value
|
||||
trust(Account const& account, STAmount const& amount, std::uint32_t flags)
|
||||
{
|
||||
if (isXRP(amount))
|
||||
Throw<std::runtime_error>("trust() requires IOU");
|
||||
Json::Value jv;
|
||||
json::Value jv;
|
||||
jv[jss::Account] = account.human();
|
||||
jv[jss::LimitAmount] = amount.getJson(JsonOptions::none);
|
||||
jv[jss::LimitAmount] = amount.getJson(JsonOptions::KNone);
|
||||
jv[jss::TransactionType] = jss::TrustSet;
|
||||
jv[jss::Flags] = flags;
|
||||
return jv;
|
||||
@@ -31,15 +31,15 @@ trust(Account const& account, STAmount const& amount, std::uint32_t flags)
|
||||
// lines. account (first function parameter) is the issuing authority, it
|
||||
// authorises peer (third function parameter) to hold a certain currency
|
||||
// (amount, the second function parameter)
|
||||
Json::Value
|
||||
json::Value
|
||||
trust(Account const& account, STAmount const& amount, Account const& peer, std::uint32_t flags)
|
||||
{
|
||||
if (isXRP(amount))
|
||||
Throw<std::runtime_error>("trust() requires IOU");
|
||||
Json::Value jv;
|
||||
json::Value jv;
|
||||
jv[jss::Account] = account.human();
|
||||
{
|
||||
auto& ja = jv[jss::LimitAmount] = amount.getJson(JsonOptions::none);
|
||||
auto& ja = jv[jss::LimitAmount] = amount.getJson(JsonOptions::KNone);
|
||||
ja[jss::issuer] = peer.human();
|
||||
}
|
||||
jv[jss::TransactionType] = jss::TrustSet;
|
||||
@@ -47,12 +47,12 @@ trust(Account const& account, STAmount const& amount, Account const& peer, std::
|
||||
return jv;
|
||||
}
|
||||
|
||||
Json::Value
|
||||
json::Value
|
||||
claw(Account const& account, STAmount const& amount, std::optional<Account> const& mptHolder)
|
||||
{
|
||||
Json::Value jv;
|
||||
json::Value jv;
|
||||
jv[jss::Account] = account.human();
|
||||
jv[jss::Amount] = amount.getJson(JsonOptions::none);
|
||||
jv[jss::Amount] = amount.getJson(JsonOptions::KNone);
|
||||
jv[jss::TransactionType] = jss::Clawback;
|
||||
|
||||
if (mptHolder)
|
||||
|
||||
Reference in New Issue
Block a user