fix var name

This commit is contained in:
ThomasV 2015-06-03 11:39:44 +02:00
parent ab60da89ac
commit ec795ba3c0
1 changed files with 1 additions and 1 deletions

View File

@ -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