|
|
|
@ -457,20 +457,19 @@ def pay_to(recipient, amount, fee, label): |
|
|
|
|
|
|
|
|
|
|
|
try: |
|
|
|
try: |
|
|
|
tx = wallet.mktx( recipient, amount, label, password, fee) |
|
|
|
tx = wallet.mktx( recipient, amount, label, password, fee) |
|
|
|
except: |
|
|
|
except BaseException, e: |
|
|
|
|
|
|
|
modal_dialog('error', e.message) |
|
|
|
droid.dialogDismiss() |
|
|
|
droid.dialogDismiss() |
|
|
|
return 'error' |
|
|
|
return |
|
|
|
|
|
|
|
|
|
|
|
print tx |
|
|
|
|
|
|
|
droid.dialogDismiss() |
|
|
|
droid.dialogDismiss() |
|
|
|
|
|
|
|
|
|
|
|
if tx: |
|
|
|
|
|
|
|
r, h = wallet.sendtx( tx ) |
|
|
|
r, h = wallet.sendtx( tx ) |
|
|
|
modal_dialog('tx sent', h) |
|
|
|
if r: |
|
|
|
return h |
|
|
|
modal_dialog('Payment sent', h) |
|
|
|
|
|
|
|
return True |
|
|
|
else: |
|
|
|
else: |
|
|
|
return 'error' |
|
|
|
modal_dialog('Error', h) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -597,7 +596,7 @@ def payto_loop(): |
|
|
|
|
|
|
|
|
|
|
|
fee = int( 100000000 * Decimal(fee) ) |
|
|
|
fee = int( 100000000 * Decimal(fee) ) |
|
|
|
result = pay_to(recipient, amount, fee, label) |
|
|
|
result = pay_to(recipient, amount, fee, label) |
|
|
|
modal_dialog('result',result) |
|
|
|
if result: |
|
|
|
out = 'main' |
|
|
|
out = 'main' |
|
|
|
|
|
|
|
|
|
|
|
elif id=="buttonContacts": |
|
|
|
elif id=="buttonContacts": |
|
|
|
|