diff --git a/electrum/commands.py b/electrum/commands.py index c74d1301e..a71acde91 100644 --- 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):