From ec795ba3c02b6e292994e8d81ca1b46b927c34eb Mon Sep 17 00:00:00 2001 From: ThomasV Date: Wed, 3 Jun 2015 11:39:44 +0200 Subject: [PATCH] fix var name --- lib/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands.py b/lib/commands.py index d2d8d8992..9774814d5 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -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