1
0

[Unit Tests] Lock/unlock wallet

This commit is contained in:
Scott E. Graves
2017-02-03 18:44:43 -06:00
parent 9dfc1a9331
commit cdaaafdb50
5 changed files with 34 additions and 8 deletions

View File

@@ -65,7 +65,7 @@ SiaCurlError CSiaCurl::_Get(const String& path, json& response) const
SiaCurlError ret;
if (res == CURLE_OK)
{
ret = CheckApiError((response = json::parse(result.c_str())));
ret = (result.length() ? CheckApiError((response = json::parse(result.c_str()))) : SiaCurlError::Success);
}
else
{
@@ -153,7 +153,7 @@ SiaCurlError CSiaCurl::Post(const String& path, const PostParameters& parameters
if (res == CURLE_OK)
{
ret = CheckApiError((response = json::parse(result.c_str())));
ret = (result.length() ? CheckApiError((response = json::parse(result.c_str()))) : SiaCurlError::Success);
}
else
{