mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-23 17:47:31 +00:00
fix var name
This commit is contained in:
parent
ab60da89ac
commit
ec795ba3c0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue