diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-07-27 12:17:50 +0200 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-07-27 14:24:52 +0200 |
commit | fa940f41eaffa4b2a28c465a10a4c12d4b8976b8 (patch) | |
tree | d92ef58ded0d996d404b7421103e47df1e375b4f /src/test/base58_tests.cpp | |
parent | dfe2dc1d84436d4eae351612dbf0b92f032389be (diff) |
Remove unused raw-pointer read helper from univalue
Diffstat (limited to 'src/test/base58_tests.cpp')
-rw-r--r-- | src/test/base58_tests.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/base58_tests.cpp b/src/test/base58_tests.cpp index 7f3ca6bf93..bb3defb93e 100644 --- a/src/test/base58_tests.cpp +++ b/src/test/base58_tests.cpp @@ -23,7 +23,7 @@ BOOST_FIXTURE_TEST_SUITE(base58_tests, BasicTestingSetup) // Goal: test low-level base58 encoding functionality BOOST_AUTO_TEST_CASE(base58_EncodeBase58) { - UniValue tests = read_json(std::string(json_tests::base58_encode_decode, json_tests::base58_encode_decode + sizeof(json_tests::base58_encode_decode))); + UniValue tests = read_json(json_tests::base58_encode_decode); for (unsigned int idx = 0; idx < tests.size(); idx++) { const UniValue& test = tests[idx]; std::string strTest = test.write(); @@ -43,7 +43,7 @@ BOOST_AUTO_TEST_CASE(base58_EncodeBase58) // Goal: test low-level base58 decoding functionality BOOST_AUTO_TEST_CASE(base58_DecodeBase58) { - UniValue tests = read_json(std::string(json_tests::base58_encode_decode, json_tests::base58_encode_decode + sizeof(json_tests::base58_encode_decode))); + UniValue tests = read_json(json_tests::base58_encode_decode); std::vector<unsigned char> result; for (unsigned int idx = 0; idx < tests.size(); idx++) { |