mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-11 22:50:59 +01:00
Remove unused raw-pointer read helper from univalue
This commit is contained in:
@@ -890,7 +890,7 @@ BOOST_AUTO_TEST_CASE(script_build)
|
||||
std::set<std::string> tests_set;
|
||||
|
||||
{
|
||||
UniValue json_tests = read_json(std::string(json_tests::script_tests, json_tests::script_tests + sizeof(json_tests::script_tests)));
|
||||
UniValue json_tests = read_json(json_tests::script_tests);
|
||||
|
||||
for (unsigned int idx = 0; idx < json_tests.size(); idx++) {
|
||||
const UniValue& tv = json_tests[idx];
|
||||
@@ -929,7 +929,7 @@ BOOST_AUTO_TEST_CASE(script_json_test)
|
||||
// scripts.
|
||||
// If a witness is given, then the last value in the array should be the
|
||||
// amount (nValue) to use in the crediting tx
|
||||
UniValue tests = read_json(std::string(json_tests::script_tests, json_tests::script_tests + sizeof(json_tests::script_tests)));
|
||||
UniValue tests = read_json(json_tests::script_tests);
|
||||
|
||||
for (unsigned int idx = 0; idx < tests.size(); idx++) {
|
||||
const UniValue& test = tests[idx];
|
||||
@@ -1743,7 +1743,7 @@ BOOST_AUTO_TEST_CASE(script_assets_test)
|
||||
BOOST_AUTO_TEST_CASE(bip341_keypath_test_vectors)
|
||||
{
|
||||
UniValue tests;
|
||||
tests.read((const char*)json_tests::bip341_wallet_vectors, sizeof(json_tests::bip341_wallet_vectors));
|
||||
tests.read(json_tests::bip341_wallet_vectors);
|
||||
|
||||
const auto& vectors = tests["keyPathSpending"];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user