refactor: Use Span of std::byte in CExtKey::SetSeed

This commit is contained in:
MarcoFalke
2021-11-08 14:27:35 +01:00
committed by MacroFake
parent fae1006019
commit facd1fb911
4 changed files with 8 additions and 7 deletions

View File

@@ -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());