Skip to content

Commit

Permalink
fix rpc unit test, plain numbers are not JSON compatible object
Browse files Browse the repository at this point in the history
UniValues read() does only read valid json.
  • Loading branch information
jonasschnelli committed Jun 4, 2015
1 parent e04d9c2 commit 1f263c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/test/rpc_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1f263c8

Please sign in to comment.