diff options
author | Michael Dietz <michael.dietz@waya.ai> | 2021-05-10 15:14:16 -0400 |
---|---|---|
committer | Michael Dietz <michael.dietz@waya.ai> | 2021-09-24 14:22:53 -0500 |
commit | d64deac7b823a0eba97ab3a3686054eefe330d3c (patch) | |
tree | 64d3de6c88d7e33b77f79bfae9a4dfe939e5d68c /src/test | |
parent | 8721638daa8502c7f8de5ae24a9393d7290a2ce5 (diff) | |
download | bitcoin-d64deac7b823a0eba97ab3a3686054eefe330d3c.tar.xz |
refactor: share logic between ScriptPubKeyToUniv and ScriptToUniv
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/fuzz/script.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/fuzz/script.cpp b/src/test/fuzz/script.cpp index bf699be325..74c576322a 100644 --- a/src/test/fuzz/script.cpp +++ b/src/test/fuzz/script.cpp @@ -113,9 +113,7 @@ FUZZ_TARGET_INIT(script, initialize_script) UniValue o2(UniValue::VOBJ); ScriptPubKeyToUniv(script, o2, false); UniValue o3(UniValue::VOBJ); - ScriptToUniv(script, o3, true); - UniValue o4(UniValue::VOBJ); - ScriptToUniv(script, o4, false); + ScriptToUniv(script, o3); { const std::vector<uint8_t> bytes = ConsumeRandomLengthByteVector(fuzzed_data_provider); |