Skip to content
This repository was archived by the owner on Nov 15, 2021. It is now read-only.

Fix change value calculation when using alternating asset inputs #803

Merged
merged 1 commit into from
Jan 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ All notable changes to this project are documented in this file.
- Add fix to ensure tx is saved to wallet when sent using RPC
- Add bad peers to the ``getpeers`` RPC method `#715 <https://github.com/CityOfZion/neo-python/pull/715>`
- Allow a raw tx to be build without an active blockchain db in the environment
- Fix calculation of asset change value when using multiple alternating asset inputs


[0.8.2] 2018-10-31
Expand Down
3 changes: 2 additions & 1 deletion neo/Wallets/Wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,8 @@ def MakeTransaction(self,
sum = Fixed8(0)
for item in group:
sum = sum + item.Value
paytotal[key] = sum
cur_val = paytotal.get(key, Fixed8.Zero())
paytotal[key] = cur_val + sum
else:
paytotal = {}

Expand Down