Skip to content

Commit 03b9a06

Browse files
author
Erik Zhang
committed
1 parent 011cd1e commit 03b9a06

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

neo-gui/UI/BulkPayDialog.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public TxOutListBoxItem[] GetOutputs()
5353
Value = new BigDecimal(Fixed8.Parse(line[1]).GetData(), 8),
5454
ScriptHash = Wallet.ToScriptHash(line[0])
5555
};
56-
}).ToArray();
56+
}).Where(p => p.Value.Value != 0).ToArray();
5757
}
5858

5959
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)

neo-gui/UI/PayToDialog.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ private void textBox_TextChanged(object sender, EventArgs e)
9292
button1.Enabled = false;
9393
return;
9494
}
95+
if (amount == Fixed8.Zero)
96+
{
97+
button1.Enabled = false;
98+
return;
99+
}
95100
if (amount.GetData() % (long)Math.Pow(10, 8 - (comboBox1.SelectedItem as AssetDescriptor).Precision) != 0)
96101
{
97102
button1.Enabled = false;

0 commit comments

Comments
 (0)