mirror of
https://github.com/feather-wallet/feather.git
synced 2024-11-16 17:27:38 +00:00
Send: fix multidest parse line numbers
This commit is contained in:
parent
2e7b23898c
commit
ab32e0b2a3
1 changed files with 2 additions and 2 deletions
|
@ -170,8 +170,9 @@ void PayToEdit::parseAsMultiline(const QStringList &lines) {
|
|||
m_outputs.clear();
|
||||
m_total = 0;
|
||||
|
||||
int i = 0;
|
||||
int i = -1;
|
||||
for (auto &line : lines) {
|
||||
i++;
|
||||
PartialTxOutput output = this->parseAddressAndAmount(line);
|
||||
if (output.address.isEmpty() && output.amount == 0) {
|
||||
m_errors.append(PayToLineError(line, "Expected two comma-separated values: (address, amount)", i, true));
|
||||
|
@ -186,6 +187,5 @@ void PayToEdit::parseAsMultiline(const QStringList &lines) {
|
|||
|
||||
m_outputs.append(output);
|
||||
m_total += output.amount;
|
||||
i += 1;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue