Fix bug in destinations amounts

This commit is contained in:
Michał Sałaban 2019-03-12 11:07:38 +01:00
parent 24856cfafd
commit d81b29182f
10 changed files with 82 additions and 21 deletions

View file

@ -247,7 +247,7 @@ class JSONRPCWallet(object):
}
if 'destinations' in data:
result['destinations'] = [
(address(x['address']), from_atomic(data['amount']))
(address(x['address']), from_atomic(x['amount']))
for x in data.get('destinations')
]
return result