fix: Apply clang-format and fix missing closing brace in Transaction.cpp

Co-authored-by: mvadari <8029314+mvadari@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-05-15 17:42:20 +00:00
committed by GitHub
parent 2157919e45
commit ddddf8cc15
3 changed files with 4 additions and 6 deletions

View File

@@ -187,6 +187,7 @@ Transaction::getJson(JsonOptions options, bool binary) const
if (ctid)
ret[jss::ctid] = *ctid;
}
}
}
return ret;

View File

@@ -321,8 +321,7 @@ populateJsonResponse(
JsonOptions::Values::DisableApiPriorV2) |
static_cast<JsonOptions::underlying_t>(
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;
}

View File

@@ -211,8 +211,7 @@ populateJsonResponse(
static constexpr auto kOptionsJsonV3 =
static_cast<JsonOptions::underlying_t>(JsonOptions::Values::DisableApiPriorV2) |
static_cast<JsonOptions::underlying_t>(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);