diff --git a/src/test/script_tests.cpp b/src/test/script_tests.cpp index 59eb90bd27..8753ddee37 100644 --- a/src/test/script_tests.cpp +++ b/src/test/script_tests.cpp @@ -1700,9 +1700,8 @@ BOOST_AUTO_TEST_CASE(bip341_keypath_test_vectors) BOOST_CHECK_EQUAL(HexStr(sighash), input["intermediary"]["sigHash"].get_str()); // To verify the sigmsg, hash the expected sigmsg, and compare it with the (expected) sighash. - BOOST_CHECK_EQUAL(HexStr((HashWriter{HASHER_TAPSIGHASH} << Span{ParseHex(input["intermediary"]["sigMsg"].get_str())}).GetSHA256()), input["intermediary"]["sigHash"].get_str()); + BOOST_CHECK_EQUAL(HexStr((HashWriter{HASHER_TAPSIGHASH} << std::span{ParseHex(input["intermediary"]["sigMsg"].get_str())}).GetSHA256()), input["intermediary"]["sigHash"].get_str()); } - } } diff --git a/src/test/serialize_tests.cpp b/src/test/serialize_tests.cpp index b28e1b4196..7e403694e2 100644 --- a/src/test/serialize_tests.cpp +++ b/src/test/serialize_tests.cpp @@ -304,7 +304,7 @@ public: if (s.template GetParams().m_base_format == BaseFormat::RAW) { s << m_base_data; } else { - s << Span{HexStr(Span{&m_base_data, 1})}; + s << std::span{HexStr(Span{&m_base_data, 1})}; } }