aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorMichael Dietz <michael.dietz@waya.ai>2021-09-28 18:11:49 -0500
committerfanquake <fanquake@gmail.com>2022-03-30 20:00:23 +0100
commit828a094ecfbf93ad9e4bb83b85a519f7416ff3fb (patch)
treeb8d34208bc503dd6d9cd23e19feb847b3993f874 /src/test
parent74b011bbfa3b607606cc7c0ce6e2d22cfd07605a (diff)
refactor: merge ScriptPubKeyToUniv & ScriptToUniv into one function
Diffstat (limited to 'src/test')
-rw-r--r--src/test/fuzz/script_format.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/fuzz/script_format.cpp b/src/test/fuzz/script_format.cpp
index 241bdfe666..9186746bcf 100644
--- a/src/test/fuzz/script_format.cpp
+++ b/src/test/fuzz/script_format.cpp
@@ -29,7 +29,5 @@ FUZZ_TARGET_INIT(script_format, initialize_script_format)
(void)ScriptToAsmStr(script, /*fAttemptSighashDecode=*/fuzzed_data_provider.ConsumeBool());
UniValue o1(UniValue::VOBJ);
- ScriptPubKeyToUniv(script, o1, /*include_hex=*/fuzzed_data_provider.ConsumeBool());
- UniValue o3(UniValue::VOBJ);
- ScriptToUniv(script, o3);
+ ScriptToUniv(script, /*out=*/o1, /*include_hex=*/fuzzed_data_provider.ConsumeBool(), /*include_address=*/fuzzed_data_provider.ConsumeBool());
}