Have PSBTInput and PSBTOutput know the PSBT's version

This commit is contained in:
Ava Chow
2024-07-22 17:14:07 -04:00
parent 7eacc21ff6
commit 990b084f11
4 changed files with 33 additions and 13 deletions

View File

@@ -192,11 +192,11 @@ FUZZ_TARGET_DESERIALIZE(prefilled_transaction_deserialize, {
DeserializeFromFuzzingInput(buffer, prefilled_transaction);
})
FUZZ_TARGET_DESERIALIZE(psbt_input_deserialize, {
PSBTInput psbt_input;
PSBTInput psbt_input(0);
DeserializeFromFuzzingInput(buffer, psbt_input);
})
FUZZ_TARGET_DESERIALIZE(psbt_output_deserialize, {
PSBTOutput psbt_output;
PSBTOutput psbt_output(0);
DeserializeFromFuzzingInput(buffer, psbt_output);
})
FUZZ_TARGET_DESERIALIZE(block_deserialize, {