mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-23 23:30:54 +00:00
refactor: Enable clang-tidy readability-identifier-naming check (#6571)
This commit is contained in:
@@ -11,34 +11,34 @@
|
||||
namespace xrpl::test::jtx::check {
|
||||
|
||||
// Cash a check requiring that a specific amount be delivered.
|
||||
Json::Value
|
||||
json::Value
|
||||
cash(jtx::Account const& dest, uint256 const& checkId, STAmount const& amount)
|
||||
{
|
||||
Json::Value jv;
|
||||
json::Value jv;
|
||||
jv[sfAccount.jsonName] = dest.human();
|
||||
jv[sfAmount.jsonName] = amount.getJson(JsonOptions::none);
|
||||
jv[sfAmount.jsonName] = amount.getJson(JsonOptions::KNone);
|
||||
jv[sfCheckID.jsonName] = to_string(checkId);
|
||||
jv[sfTransactionType.jsonName] = jss::CheckCash;
|
||||
return jv;
|
||||
}
|
||||
|
||||
// Cash a check requiring that at least a minimum amount be delivered.
|
||||
Json::Value
|
||||
json::Value
|
||||
cash(jtx::Account const& dest, uint256 const& checkId, DeliverMin const& atLeast)
|
||||
{
|
||||
Json::Value jv;
|
||||
json::Value jv;
|
||||
jv[sfAccount.jsonName] = dest.human();
|
||||
jv[sfDeliverMin.jsonName] = atLeast.value.getJson(JsonOptions::none);
|
||||
jv[sfDeliverMin.jsonName] = atLeast.value.getJson(JsonOptions::KNone);
|
||||
jv[sfCheckID.jsonName] = to_string(checkId);
|
||||
jv[sfTransactionType.jsonName] = jss::CheckCash;
|
||||
return jv;
|
||||
}
|
||||
|
||||
// Cancel a check.
|
||||
Json::Value
|
||||
json::Value
|
||||
cancel(jtx::Account const& dest, uint256 const& checkId)
|
||||
{
|
||||
Json::Value jv;
|
||||
json::Value jv;
|
||||
jv[sfAccount.jsonName] = dest.human();
|
||||
jv[sfCheckID.jsonName] = to_string(checkId);
|
||||
jv[sfTransactionType.jsonName] = jss::CheckCancel;
|
||||
|
||||
Reference in New Issue
Block a user