diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index a5ff83d..ad49dba 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -189,7 +189,8 @@ void MainWindow::setupSettingsModal() { void MainWindow::donate() { // Set up a donation to me :) - ui->Address1->setText(Utils::getDonationAddr()); + ui->Address1->setText(Utils::getDonationAddr( + Settings::getInstance()->isSaplingAddress(ui->inputsCombo->currentText()))); ui->Address1->setCursorPosition(0); ui->Amount1->setText("0.01"); diff --git a/src/utils.cpp b/src/utils.cpp index 45ec617..fe76e22 100644 --- a/src/utils.cpp +++ b/src/utils.cpp @@ -12,11 +12,17 @@ const QString Utils::getTokenName() { } } -const QString Utils::getDonationAddr() { +const QString Utils::getDonationAddr(bool sapling) { if (Settings::getInstance()->isTestnet()) - return "tmP1JL19JyJh3jPMUbfovk4W67jB7VJWybu"; + if (sapling) + return "ztestsapling1kdp74adyfsmm9838jaupgfyx3npgw8ut63stjjx757pc248cuc0ymzphqeux60c64qe5qt68ygh"; + else + return "ztbGDqgkmXQjheivgeirwEvJLD4SUNqsWCGwxwVg4YpGz1ARR8P2rXaptkT14z3NDKamcxNmQuvmvktyokMs7HkutRNSx1D"; else - return "t1KfJJrSuVYmnNLrw7EZHRv1kZY3zdGGLyb"; + if (sapling) + return "zs1gv64eu0v2wx7raxqxlmj354y9ycznwaau9kduljzczxztvs4qcl00kn2sjxtejvrxnkucw5xx9u"; + else + return "zcEgrceTwvoiFdEvPWcsJHAMrpLsprMF6aRJiQa3fan5ZphyXLPuHghnEPrEPRoEVzUy65GnMVyCTRdkT6BYBepnXh6NBYs"; } // Get the dev fee address based on the transaction diff --git a/src/utils.h b/src/utils.h index 5964e75..3bb7be5 100644 --- a/src/utils.h +++ b/src/utils.h @@ -13,7 +13,7 @@ public: static const QString getTokenName(); static const QString getDevAddr(Tx tx); - static const QString getDonationAddr(); + static const QString getDonationAddr(bool sapling); static double getMinerFee(); static double getDevFee();