proto.btc.tw.json: support export of non-MMGen addresses

This commit is contained in:
The MMGen Project 2022-12-01 12:32:30 +00:00
commit 2981cfbb8f
Signed by: mmgen
GPG key ID: 3F8B1861E32B7DA2

View file

@ -72,7 +72,7 @@ class BitcoinTwJSON(TwJSON):
async def get_entries(self): # TODO: include 'received' field
return sorted(
[self.entry_tuple(d.twmmid.obj, d.addr, d.amt, d.comment)
[self.entry_tuple(d.twmmid, d.addr, d.amt, d.comment)
for d in (await self.addrlist).data],
key = lambda x: x.mmgen_id.sort_key )