This commit is contained in:
Vladimir N. Korotenko
2025-11-28 09:29:50 +03:00
parent b367f4b3dc
commit 0bcf455d8d
2 changed files with 3 additions and 3 deletions

View File

@@ -22,7 +22,7 @@
"https://testnet-dm2.bitdeals.org",
"--debug",
"deal",
"negative",
"cancel",
"-m",
"message_text",
"-s",

View File

@@ -532,7 +532,7 @@ int Deals::Cancel()
string result = ExecCommand(data.c_str());
if (result.length() == 0)
{
return NoResponse("");
return NoResponse(data);
}
nlohmann::json jsonData = nlohmann::json::parse(result);
@@ -558,7 +558,7 @@ int Deals::Cancel()
string jsf = deal.dump();
jsf = ReplaceAll(jsf, "\"", "\\\"");
data = "curl -s --location'";
data = "curl -s --location '";
data.append(address);
data.append("/api/v1/deal/cancel' --header 'Content-Type: application/json' ");
data.append("--data '");