commit 2e9cfb98001be0de9907366fc4dca71ea30b917d
parent a088940496dcd457b112abe175052aa17bb545ce
Author: ThomasV <thomasv@electrum.org>
Date: Tue, 16 Aug 2016 12:41:15 +0200
small fixes for addrequest
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/commands.py b/lib/commands.py
@@ -580,10 +580,10 @@ class Commands:
@command('w')
def addrequest(self, amount, memo='', expiration=None, force=False):
"""Create a payment request."""
- addr = self.wallet.get_unused_address(None)
+ addr = self.wallet.get_unused_address()
if addr is None:
if force:
- addr = self.wallet.create_new_address(None, False)
+ addr = self.wallet.create_new_address(False)
else:
return False
amount = int(COIN*Decimal(amount))