commit 7a11c0591667fd15995e36c77af1fd344a61c061
parent e50f6d29ed9c558845531a4abac0304564095efd
Author: ThomasV <thomasv@electrum.org>
Date: Sat, 11 Apr 2020 10:56:43 +0200
fix #6075
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/electrum/commands.py b/electrum/commands.py
@@ -788,6 +788,7 @@ class Commands:
async def list_requests(self, pending=False, expired=False, paid=False, wallet: Abstract_Wallet = None):
"""List the payment requests you made."""
out = wallet.get_sorted_requests()
+ out = list(map(self._format_request, out))
if pending:
f = PR_UNPAID
elif expired:
@@ -798,7 +799,7 @@ class Commands:
f = None
if f is not None:
out = list(filter(lambda x: x.get('status')==f, out))
- return list(map(self._format_request, out))
+ return out
@command('w')
async def createnewaddress(self, wallet: Abstract_Wallet = None):