mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 18:20:58 +02:00
fix rpc unit test, plain numbers are not JSON compatible object
UniValues read() does only read valid json.
This commit is contained in:
@ -123,8 +123,8 @@ BOOST_AUTO_TEST_CASE(rpc_format_monetary_values)
|
|||||||
|
|
||||||
static Value ValueFromString(const std::string &str)
|
static Value ValueFromString(const std::string &str)
|
||||||
{
|
{
|
||||||
Value value;
|
UniValue value;
|
||||||
BOOST_CHECK(value.read(str));
|
BOOST_CHECK(value.setNumStr(str));
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user