Fix: use proper class; add comment on pending PR

This commit is contained in:
Michał Sałaban 2018-01-22 03:21:25 +01:00
parent e0052d71e8
commit aa155b0520
2 changed files with 8 additions and 6 deletions

View file

@ -170,13 +170,13 @@ class JSONRPCWallet(object):
def get_transactions_in(self, account=0):
_transfers = self.raw_request('get_transfers',
{'account_index': account, 'in': True, 'out': False, 'pool': False})
return [Transaction(**self._tx2dict(tx)) for tx in
return [Payment(**self._tx2dict(tx)) for tx in
sorted(_transfers.get('in', []), key=operator.itemgetter('timestamp'))]
def get_transactions_out(self, account=0):
_transfers = self.raw_request('get_transfers',
{'account_index': account, 'in': False, 'out': True, 'pool': False})
return [Transaction(**self._tx2dict(tx)) for tx in
return [Transfer(**self._tx2dict(tx)) for tx in
sorted(_transfers.get('out', []), key=operator.itemgetter('timestamp'))]
def _tx2dict(self, tx):