[Unit Tests] Lock/unlock wallet
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user