mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 06:43:45 +01:00
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.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user