Skip to content

Commit

Permalink
Change error text
Browse files Browse the repository at this point in the history
  • Loading branch information
psolstice committed Dec 15, 2023
1 parent 3e79bd6 commit d473070
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/spark/sparkwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1231,7 +1231,7 @@ CWalletTx CSparkWallet::CreateSparkSpendTransaction(
auto& recipient = recipients[i];

if (recipient.scriptPubKey.IsPayToExchangeAddress()) {
throw std::runtime_error("Cannot create private transaction with exchange address as a destination");
throw std::runtime_error("Exchange addresses cannot receive private funds. Please transfer your funds to a transparent address first before sending to an Exchange address");
}

if (!MoneyRange(recipient.nAmount)) {
Expand Down
2 changes: 1 addition & 1 deletion src/wallet/lelantusjoinsplitbuilder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ CWalletTx LelantusJoinSplitBuilder::Build(
auto& recipient = recipients[i];

if (recipient.scriptPubKey.IsPayToExchangeAddress()) {
throw std::runtime_error("Cannot create private transaction with exchange address as a destination");
throw std::runtime_error("Exchange addresses cannot receive private funds. Please transfer your funds to a transparent address first before sending to an Exchange address");
}

if (!MoneyRange(recipient.nAmount)) {
Expand Down

0 comments on commit d473070

Please sign in to comment.