mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
refactor: share logic between ScriptPubKeyToUniv and ScriptToUniv
This commit is contained in:
parent
8721638daa
commit
d64deac7b8
4 changed files with 13 additions and 25 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue