aboutsummaryrefslogtreecommitdiff
path: root/src/test/key_io_tests.cpp
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-11-08 14:27:35 +0100
committerMacroFake <falke.marco@gmail.com>2022-04-27 19:53:37 +0200
commitfacd1fb911abfc595a3484ee53397eff515d4c40 (patch)
treecc0ed08bb4e505f6570236ab86ef4ef4e268c3c9 /src/test/key_io_tests.cpp
parentfae1006019188700e0c497a63fc1550fe00ca8bb (diff)
downloadbitcoin-facd1fb911abfc595a3484ee53397eff515d4c40.tar.xz
refactor: Use Span of std::byte in CExtKey::SetSeed
Diffstat (limited to 'src/test/key_io_tests.cpp')
-rw-r--r--src/test/key_io_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/key_io_tests.cpp b/src/test/key_io_tests.cpp
index b06157e99f..e70b8b3dfd 100644
--- a/src/test/key_io_tests.cpp
+++ b/src/test/key_io_tests.cpp
@@ -35,7 +35,7 @@ BOOST_AUTO_TEST_CASE(key_io_valid_parse)
continue;
}
std::string exp_base58string = test[0].get_str();
- std::vector<unsigned char> exp_payload = ParseHex(test[1].get_str());
+ const std::vector<std::byte> exp_payload{ParseHex<std::byte>(test[1].get_str())};
const UniValue &metadata = test[2].get_obj();
bool isPrivkey = find_value(metadata, "isPrivkey").get_bool();
SelectParams(find_value(metadata, "chain").get_str());