aboutsummaryrefslogtreecommitdiff
path: root/tests/fuzz/cold-transaction.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/fuzz/cold-transaction.cpp')
-rw-r--r--tests/fuzz/cold-transaction.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/fuzz/cold-transaction.cpp b/tests/fuzz/cold-transaction.cpp
index 135343704..bf5fba1f7 100644
--- a/tests/fuzz/cold-transaction.cpp
+++ b/tests/fuzz/cold-transaction.cpp
@@ -50,11 +50,8 @@ BEGIN_INIT_SIMPLE_FUZZER()
END_INIT_SIMPLE_FUZZER()
BEGIN_SIMPLE_FUZZER()
- std::string s((const char*)buf, len);
tools::wallet2::unsigned_tx_set exported_txs;
- std::stringstream iss;
- iss << s;
- binary_archive<false> ar(iss);
+ binary_archive<false> ar{{buf, len}};
::serialization::serialize(ar, exported_txs);
std::vector<tools::wallet2::pending_tx> ptx;
bool success = wallet->sign_tx(exported_txs, "/tmp/cold-transaction-test-signed", ptx);