From 828a094ecfbf93ad9e4bb83b85a519f7416ff3fb Mon Sep 17 00:00:00 2001 From: Michael Dietz Date: Tue, 28 Sep 2021 18:11:49 -0500 Subject: refactor: merge ScriptPubKeyToUniv & ScriptToUniv into one function --- src/rest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rest.cpp') diff --git a/src/rest.cpp b/src/rest.cpp index 4b6bb7ecaf..6e9e7092e4 100644 --- a/src/rest.cpp +++ b/src/rest.cpp @@ -855,7 +855,7 @@ static bool rest_getutxos(const std::any& context, HTTPRequest* req, const std:: // include the script in a json output UniValue o(UniValue::VOBJ); - ScriptPubKeyToUniv(coin.out.scriptPubKey, o, true); + ScriptToUniv(coin.out.scriptPubKey, /*out=*/o, /*include_hex=*/true, /*include_address=*/true); utxo.pushKV("scriptPubKey", o); utxos.push_back(utxo); } -- cgit v1.2.3