Merge branch 'develop' into ximinez/number-fix-maxrepcusp

This commit is contained in:
Ed Hennis
2026-05-12 16:26:09 -04:00
committed by GitHub

View File

@@ -297,13 +297,24 @@ fillJsonQueue(json::Value& json, LedgerFill const& fill)
txJson["last_result"] = transToken(*tx.lastResult);
auto&& temp = fillJsonTx(fill, bBinary, bExpanded, tx.txn, nullptr);
if (fill.context->apiVersion > 1)
if (temp.isObject())
{
copyFrom(txJson, temp);
if (fill.context->apiVersion > 1)
{
copyFrom(txJson, temp);
}
else
{
copyFrom(txJson[jss::tx], temp);
}
}
else if (fill.context->apiVersion > 1)
{
txJson[jss::hash] = temp;
}
else
{
copyFrom(txJson[jss::tx], temp);
txJson[jss::tx] = temp;
}
}
}