Skip to content

Commit 918b126

Browse files
committed
fix CreateTransaction error messages
1 parent ac489b2 commit 918b126

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/wallet/wallet.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2238,17 +2238,17 @@ bool CWallet::CreateTransaction(const vector<CRecipient>& vecSend, CWalletTx& wt
22382238
{
22392239
if (nValue < 0 || recipient.nAmount < 0)
22402240
{
2241-
strFailReason = _("Transaction amounts must be positive");
2241+
strFailReason = _("Transaction amounts must not be negative");
22422242
return false;
22432243
}
22442244
nValue += recipient.nAmount;
22452245

22462246
if (recipient.fSubtractFeeFromAmount)
22472247
nSubtractFeeFromAmount++;
22482248
}
2249-
if (vecSend.empty() || nValue < 0)
2249+
if (vecSend.empty())
22502250
{
2251-
strFailReason = _("Transaction amounts must be positive");
2251+
strFailReason = _("Transaction must have at least one recipient");
22522252
return false;
22532253
}
22542254

0 commit comments

Comments
 (0)