From 1d483424b8b78c306337aa7770e15170ea455a14 Mon Sep 17 00:00:00 2001 From: adityapk00 Date: Sat, 23 Mar 2019 10:58:05 -0700 Subject: [PATCH] simplify --- src/requestdialog.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/requestdialog.cpp b/src/requestdialog.cpp index 406d71a..4023318 100644 --- a/src/requestdialog.cpp +++ b/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()); } }