From 217dc2f55b38c22c3bbaf3b42f03664419cfec50 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 25 Feb 2015 18:00:38 +0100 Subject: [PATCH] android: fix recv amount bug --- gui/android.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gui/android.py b/gui/android.py index d89064ceb..71c96ee32 100644 --- a/gui/android.py +++ b/gui/android.py @@ -660,9 +660,9 @@ def receive_loop(): modal_dialog('URI copied to clipboard', receive_URI) elif event["name"]=="amount": - amount = modal_input('Amount', 'Amount you want receive (in BTC). ', format_satoshis(receive_amount) if receive_amount else None, "numberDecimal") + amount = modal_input('Amount', 'Amount you want to receive (in BTC). ', format_satoshis(receive_amount) if receive_amount else None, "numberDecimal") if amount is not None: - receive_amount = 100000000 * Decimal(amount) if amount else None + receive_amount = int(100000000 * Decimal(amount)) if amount else None out = 'receive' elif event["name"]=="message":