refactor: use named args when ScriptToUniv or TxToUniv are invoked

This commit is contained in:
Michael Dietz
2021-09-28 19:04:07 -05:00
committed by fanquake
parent 22f25a6116
commit 8b9efebb0a
6 changed files with 14 additions and 14 deletions

View File

@@ -670,7 +670,7 @@ static bool rest_tx(const std::any& context, HTTPRequest* req, const std::string
case RetFormat::JSON: {
UniValue objTx(UniValue::VOBJ);
TxToUniv(*tx, hashBlock, objTx);
TxToUniv(*tx, /*block_hash=*/hashBlock, /*entry=*/ objTx);
std::string strJSON = objTx.write() + "\n";
req->WriteHeader("Content-Type", "application/json");
req->WriteReply(HTTP_OK, strJSON);