simplify
This commit is contained in:
@@ -124,12 +124,8 @@ void RequestDialog::showRequestZcash(MainWindow* main) {
|
|||||||
+ "?amt=0.0001"
|
+ "?amt=0.0001"
|
||||||
+ "&memo=" + QUrl::toPercentEncoding(memoURI);
|
+ "&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,
|
// If the disclosed address in the memo doesn't have a balance, it will automatically fallback to the default
|
||||||
QString payFrom = "";
|
// sapling address
|
||||||
if (main->getRPC()->getAllBalances()->value(req.cmbMyAddress->currentText()) > 0) {
|
main->payZcashURI(sendURI, req.cmbMyAddress->currentText());
|
||||||
payFrom = req.cmbMyAddress->currentText();
|
|
||||||
}
|
|
||||||
|
|
||||||
main->payZcashURI(sendURI, payFrom);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user