diff --git a/silkaj/tx.py b/silkaj/tx.py index 03779a6020ec7d63e859c5bd07f047d1697646dc..49312df644b3af11100b924eef111cbcbcd00ff4 100644 --- a/silkaj/tx.py +++ b/silkaj/tx.py @@ -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)