aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/decode_tx.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@protonmail.com>2020-06-24 15:48:26 +0200
committerWladimir J. van der Laan <laanwj@protonmail.com>2020-06-24 18:41:45 +0200
commitbd93e32292c96b671e71223032ff8f660ce27c5d (patch)
tree0aa7480acb3fa0162f49ab989bd40a8274acffe0 /src/test/fuzz/decode_tx.cpp
parent205b87d2f6bd01285de50ba742e32e4ab1298b13 (diff)
downloadbitcoin-bd93e32292c96b671e71223032ff8f660ce27c5d.tar.xz
refactor: Replace HexStr(o.begin(), o.end()) with HexStr(o)
HexStr can be called with anything that bas `begin()` and `end()` functions, so clean up the redundant calls.
Diffstat (limited to 'src/test/fuzz/decode_tx.cpp')
-rw-r--r--src/test/fuzz/decode_tx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/decode_tx.cpp b/src/test/fuzz/decode_tx.cpp
index 09c4ff05df..0d89d4228a 100644
--- a/src/test/fuzz/decode_tx.cpp
+++ b/src/test/fuzz/decode_tx.cpp
@@ -14,7 +14,7 @@
void test_one_input(const std::vector<uint8_t>& buffer)
{
- const std::string tx_hex = HexStr(std::string{buffer.begin(), buffer.end()});
+ const std::string tx_hex = HexStr(buffer);
CMutableTransaction mtx;
const bool result_none = DecodeHexTx(mtx, tx_hex, false, false);
const bool result_try_witness = DecodeHexTx(mtx, tx_hex, false, true);