mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 05:23:01 +01:00
fix CreateTransaction error messages
This commit is contained in:
parent
ac489b2445
commit
918b126901
@ -2238,7 +2238,7 @@ bool CWallet::CreateTransaction(const vector<CRecipient>& vecSend, CWalletTx& wt
|
|||||||
{
|
{
|
||||||
if (nValue < 0 || recipient.nAmount < 0)
|
if (nValue < 0 || recipient.nAmount < 0)
|
||||||
{
|
{
|
||||||
strFailReason = _("Transaction amounts must be positive");
|
strFailReason = _("Transaction amounts must not be negative");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
nValue += recipient.nAmount;
|
nValue += recipient.nAmount;
|
||||||
@ -2246,9 +2246,9 @@ bool CWallet::CreateTransaction(const vector<CRecipient>& vecSend, CWalletTx& wt
|
|||||||
if (recipient.fSubtractFeeFromAmount)
|
if (recipient.fSubtractFeeFromAmount)
|
||||||
nSubtractFeeFromAmount++;
|
nSubtractFeeFromAmount++;
|
||||||
}
|
}
|
||||||
if (vecSend.empty() || nValue < 0)
|
if (vecSend.empty())
|
||||||
{
|
{
|
||||||
strFailReason = _("Transaction amounts must be positive");
|
strFailReason = _("Transaction must have at least one recipient");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user