Skip to content

Commit

Permalink
UI: activate metadex cancels following class C merge
Browse files Browse the repository at this point in the history
  • Loading branch information
zathras-crypto committed May 13, 2015
1 parent 916cd06 commit ce002d5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/qt/metadexcanceldialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,12 +362,12 @@ void MetaDExCancelDialog::SendCancelTransaction()
}

// create a payload for the transaction
// #CLASSC# std::vector<unsigned char> payload = CreatePayload_MetaDExTrade(propertyIdForSale, amountForSale, propertyIdDesired, amountDesired, action);
std::vector<unsigned char> payload = CreatePayload_MetaDExTrade(propertyIdForSale, amountForSale, propertyIdDesired, amountDesired, action);

// request the wallet build the transaction (and if needed commit it)
uint256 txid = 0;
std::string rawHex;
int result = 0; // #CLASSC# int result = ClassAgnosticWalletTXBuilder(fromAddress, "", "", 0, payload, txid, rawHex, autoCommit);
int result = ClassAgnosticWalletTXBuilder(fromAddress, "", "", 0, payload, txid, rawHex, autoCommit);

// check error and return the txid (or raw hex depending on autocommit)
if (result != 0) {
Expand All @@ -376,7 +376,7 @@ void MetaDExCancelDialog::SendCancelTransaction()
"The MetaDEx cancel transaction has failed.\n\nThe error code was: " + QString::number(result) + "\nThe error message was:\n" + QString::fromStdString(strError));
return;
} else {
if (0) { // #CLASSC# if (!autoCommit) {
if (!autoCommit) {
PopulateSimpleDialog(rawHex, "Raw Hex (auto commit is disabled)", "Raw transaction hex");
} else {
PopulateTXSentDialog(txid.GetHex());
Expand Down

0 comments on commit ce002d5

Please sign in to comment.