close #16 fix return value

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

View File

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

View File

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