tfix var name - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit ec795ba3c02b6e292994e8d81ca1b46b927c34eb DIR parent ab60da89ac3c2541173057a96a6a9ab7d8f2fe0e HTML Author: ThomasV <thomasv@gitorious> Date: Wed, 3 Jun 2015 11:39:44 +0200 fix var name Diffstat: M lib/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR diff --git a/lib/commands.py b/lib/commands.py t@@ -557,7 +557,7 @@ class Commands: def addrequest(self, requested_amount, reason='', expiration=60*60): """Create a payment request. """ - amount = int(Decimal(amount)*COIN) + amount = int(Decimal(requested_amount)*COIN) key = self.wallet.add_payment_request(self.config, amount, reason, expiration) return self._format_request(self.wallet.get_payment_request(key)) if key else False