mirror of
https://git.wownero.com/lza_menace/wownero-python.git
synced 2024-08-15 03:25:25 +00:00
Make list of destinations a tuple, like argument to transfer_multiple();
Initialize destinations as empty list, make iterations straightforward
This commit is contained in:
parent
55ce01f555
commit
2d9843fec9
3 changed files with 10 additions and 4 deletions
|
@ -247,7 +247,7 @@ class JSONRPCWallet(object):
|
|||
}
|
||||
if 'destinations' in data:
|
||||
result['destinations'] = [
|
||||
{'address': address(x['address']), 'amount': from_atomic(data['amount'])}
|
||||
(address(x['address']), from_atomic(data['amount']))
|
||||
for x in data.get('destinations')
|
||||
]
|
||||
return result
|
||||
|
|
|
@ -50,7 +50,7 @@ class OutgoingPayment(Payment):
|
|||
destinations = None
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
self.destinations = kwargs.pop('destinations', self.destinations)
|
||||
self.destinations = kwargs.pop('destinations', [])
|
||||
super(OutgoingPayment, self).__init__(**kwargs)
|
||||
|
||||
_reprstr = "out: {} @ {} {:.12f} id={}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue