close #16 fix return value

This commit is contained in:
Vladimir N. Korotenko
2025-11-22 13:00:01 +03:00
parent 8a866d09bb
commit 1f9aa5d6df
2 changed files with 5 additions and 13 deletions

View File

@@ -13,18 +13,10 @@
"https://testnet-dm2.bitdeals.org",
"--debug",
"deal",
"create",
"-t",
"postpayment",
"-s",
"mnumHs9HQMrw2Q1iKLNnx9NzExS7nMLmyp",
"-c",
"mraXx7JrmAmuKypdJ1vseQBXySsdRZE5AC",
"-g",
"0.01",
"-l",
"1d"],
"status",
"--is-paid",
"2NDkN9PWdvf8T3AFe57vDsQX9qeJG5Y5iJW"
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],

View File

@@ -255,7 +255,7 @@ int Deals::Status()
ShowDebug(data, decoded, 1, payload);
if (parser.cmdOptionExists("-i") || parser.cmdOptionExists("--is-paid"))
{
return isPayment;
return isPayment == true ? 0 : 1;
}
return 0;
}