mirror of
https://git.wownero.com/lza_menace/wownero-python.git
synced 2024-08-15 03:25:25 +00:00
Fix: use proper class; add comment on pending PR
This commit is contained in:
parent
582bd1c9e4
commit
d0bc224e78
2 changed files with 8 additions and 6 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue