mirror of
https://git.wownero.com/lza_menace/wownero-python.git
synced 2024-08-15 03:25:25 +00:00
More explicit naming
This commit is contained in:
parent
5355824a61
commit
6a3015d880
4 changed files with 14 additions and 11 deletions
|
@ -76,7 +76,7 @@ class JSONRPCWallet(object):
|
|||
for tx in _payments['payments']:
|
||||
data = self._tx2dict(tx)
|
||||
# Monero <= 0.11 : no address is passed because there's only one
|
||||
data['address'] = data['address'] or self._master_address
|
||||
data['local_address'] = data['local_address'] or self._master_address
|
||||
pmts.append(Payment(**data))
|
||||
return pmts
|
||||
|
||||
|
@ -100,7 +100,7 @@ class JSONRPCWallet(object):
|
|||
'payment_id': tx['payment_id'],
|
||||
'note': tx.get('note'),
|
||||
# NOTE: address will be resolved only after PR#3010 has been merged to Monero
|
||||
'address': address(tx['address']) if 'address' in tx else None,
|
||||
'local_address': address(tx['address']) if 'address' in tx else None,
|
||||
'key': tx.get('key'),
|
||||
'blob': tx.get('blob', None),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue