Browse Source

check address before asking for password

283
ThomasV 13 years ago
parent
commit
aa71352655
  1. 7
      client/electrum4a.py

7
client/electrum4a.py

@ -633,10 +633,15 @@ def payto_loop():
recipient = droid.fullQueryDetail("recipient").result.get('text')
label = droid.fullQueryDetail("label").result.get('text')
amount = droid.fullQueryDetail('amount').result.get('text')
if not wallet.is_valid(recipient):
modal_dialog('Error','Invalid Bitcoin address')
continue
try:
amount = int( 100000000 * Decimal(amount) )
except:
modal_dialog('Error','invalid amount')
modal_dialog('Error','Invalid amount')
continue
result = pay_to(recipient, amount, wallet.fee, label)

Loading…
Cancel
Save