Skip to content
Snippets Groups Projects
Commit 43fec2fa authored by atrax's avatar atrax
Browse files

[fix] #296 : Prevent sending 0 with --allSources

parent bcb0f121
No related branches found
No related tags found
1 merge request!154[fix] #296 : Prevent sending transaction with 0 as amounts
......@@ -110,6 +110,11 @@ async def send_transaction(
pubkey_amount = await money.get_amount_from_pubkey(issuer_pubkey)
if allsources:
if pubkey_amount[0] <= 0:
message_exit(
f"Error: Issuer pubkey {display_pubkey_and_checksum(issuer_pubkey)} is empty. No transaction sent."
)
tx_amounts = [pubkey_amount[0]]
recipients = list(recipients)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment