From ddddf8cc153ade31c55c7c103f24f380606d8a58 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 15 May 2026 17:42:20 +0000 Subject: [PATCH] fix: Apply clang-format and fix missing closing brace in Transaction.cpp Co-authored-by: mvadari <8029314+mvadari@users.noreply.github.com> --- src/xrpld/app/misc/detail/Transaction.cpp | 1 + src/xrpld/rpc/handlers/account/AccountTx.cpp | 6 ++---- src/xrpld/rpc/handlers/transaction/Tx.cpp | 3 +-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/xrpld/app/misc/detail/Transaction.cpp b/src/xrpld/app/misc/detail/Transaction.cpp index 07bd3637f6..04f51a39af 100644 --- a/src/xrpld/app/misc/detail/Transaction.cpp +++ b/src/xrpld/app/misc/detail/Transaction.cpp @@ -187,6 +187,7 @@ Transaction::getJson(JsonOptions options, bool binary) const if (ctid) ret[jss::ctid] = *ctid; } + } } return ret; diff --git a/src/xrpld/rpc/handlers/account/AccountTx.cpp b/src/xrpld/rpc/handlers/account/AccountTx.cpp index cbbf55f262..227fa029e5 100644 --- a/src/xrpld/rpc/handlers/account/AccountTx.cpp +++ b/src/xrpld/rpc/handlers/account/AccountTx.cpp @@ -321,8 +321,7 @@ populateJsonResponse( JsonOptions::Values::DisableApiPriorV2) | static_cast( JsonOptions::Values::DisableApiPriorV3); - auto const opts = - context.apiVersion >= 3 ? kOptionsJsonV3 : kOptionsJsonV2; + auto const opts = context.apiVersion >= 3 ? kOptionsJsonV3 : kOptionsJsonV2; jvObj[jsonTx] = txn->getJson(opts, false); jvObj[jss::hash] = to_string(txn->getID()); jvObj[jss::ledger_index] = txn->getLedger(); @@ -341,8 +340,7 @@ populateJsonResponse( { uint32_t const lgrSeq = txn->getLedger(); uint32_t const txnIdx = txnMeta->getIndex(); - uint32_t const netID = - context.app.getNetworkIDService().getNetworkID(); + uint32_t const netID = context.app.getNetworkIDService().getNetworkID(); if (auto const ctid = RPC::encodeCTID(lgrSeq, txnIdx, netID)) jvObj[jss::ctid] = *ctid; } diff --git a/src/xrpld/rpc/handlers/transaction/Tx.cpp b/src/xrpld/rpc/handlers/transaction/Tx.cpp index e1777abd1a..e6753340b3 100644 --- a/src/xrpld/rpc/handlers/transaction/Tx.cpp +++ b/src/xrpld/rpc/handlers/transaction/Tx.cpp @@ -211,8 +211,7 @@ populateJsonResponse( static constexpr auto kOptionsJsonV3 = static_cast(JsonOptions::Values::DisableApiPriorV2) | static_cast(JsonOptions::Values::DisableApiPriorV3); - auto const kOptionsJson = - context.apiVersion >= 3 ? kOptionsJsonV3 : kOptionsJsonV2; + auto const kOptionsJson = context.apiVersion >= 3 ? kOptionsJsonV3 : kOptionsJsonV2; if (args.binary) { response[jss::tx_blob] = result.txn->getJson(kOptionsJson, true);