From bd93e32292c96b671e71223032ff8f660ce27c5d Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Wed, 24 Jun 2020 15:48:26 +0200 Subject: 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. --- src/test/fuzz/decode_tx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/fuzz/decode_tx.cpp') diff --git a/src/test/fuzz/decode_tx.cpp b/src/test/fuzz/decode_tx.cpp index 09c4ff05d..0d89d4228 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& 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); -- cgit v1.2.3