Browse Source

simplify

import_zecw
adityapk00 5 years ago
parent
commit
1d483424b8
  1. 10
      src/requestdialog.cpp

10
src/requestdialog.cpp

@ -124,12 +124,8 @@ void RequestDialog::showRequestZcash(MainWindow* main) {
+ "?amt=0.0001"
+ "&memo=" + QUrl::toPercentEncoding(memoURI);
// If the disclosed address in the memo doesn't have a balance, then we can't send the Tx from that address,
QString payFrom = "";
if (main->getRPC()->getAllBalances()->value(req.cmbMyAddress->currentText()) > 0) {
payFrom = req.cmbMyAddress->currentText();
}
main->payZcashURI(sendURI, payFrom);
// If the disclosed address in the memo doesn't have a balance, it will automatically fallback to the default
// sapling address
main->payZcashURI(sendURI, req.cmbMyAddress->currentText());
}
}

Loading…
Cancel
Save