Skip to content

Commit 1f263c8

Browse files
committed
fix rpc unit test, plain numbers are not JSON compatible object
UniValues read() does only read valid json.
1 parent e04d9c2 commit 1f263c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/rpc_tests.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ BOOST_AUTO_TEST_CASE(rpc_format_monetary_values)
123123

124124
static Value ValueFromString(const std::string &str)
125125
{
126-
Value value;
127-
BOOST_CHECK(value.read(str));
126+
UniValue value;
127+
BOOST_CHECK(value.setNumStr(str));
128128
return value;
129129
}
130130

0 commit comments

Comments
 (0)