aboutsummaryrefslogtreecommitdiff
path: root/src/test/rpc_tests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/rpc_tests.cpp')
-rw-r--r--src/test/rpc_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/rpc_tests.cpp b/src/test/rpc_tests.cpp
index 2f783a4b95..4cad3ec68e 100644
--- a/src/test/rpc_tests.cpp
+++ b/src/test/rpc_tests.cpp
@@ -20,7 +20,7 @@
static UniValue JSON(std::string_view json)
{
UniValue value;
- BOOST_CHECK(value.read(json.data(), json.size()));
+ BOOST_CHECK(value.read(json));
return value;
}