fix rpc unit test, plain numbers are not JSON compatible object
UniValues read() does only read valid json.
This commit is contained in:
parent
e04d9c25cf
commit
1f263c899e
1 changed files with 2 additions and 2 deletions
|
@ -123,8 +123,8 @@ BOOST_AUTO_TEST_CASE(rpc_format_monetary_values)
|
|||
|
||||
static Value ValueFromString(const std::string &str)
|
||||
{
|
||||
Value value;
|
||||
BOOST_CHECK(value.read(str));
|
||||
UniValue value;
|
||||
BOOST_CHECK(value.setNumStr(str));
|
||||
return value;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue