Skip to content

Commit 47a2631

Browse files
tests: Fuzz DecodeBase64PSBT(...)
1 parent d3d4892 commit 47a2631

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/fuzz/base_encode_decode.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <test/fuzz/fuzz.h>
66

77
#include <base58.h>
8+
#include <psbt.h>
89
#include <util/string.h>
910
#include <util/strencodings.h>
1011

@@ -44,4 +45,8 @@ void test_one_input(const std::vector<uint8_t>& buffer)
4445
assert(encoded_string == TrimString(encoded_string));
4546
assert(ToLower(encoded_string) == ToLower(TrimString(random_encoded_string)));
4647
}
48+
49+
PartiallySignedTransaction psbt;
50+
std::string error;
51+
(void)DecodeBase64PSBT(psbt, random_encoded_string, error);
4752
}

0 commit comments

Comments
 (0)