diff --git a/chia/wallet/wallet_state_manager.py b/chia/wallet/wallet_state_manager.py index 17a028fe74a5..89867a101a2b 100644 --- a/chia/wallet/wallet_state_manager.py +++ b/chia/wallet/wallet_state_manager.py @@ -1530,12 +1530,13 @@ async def _add_coin_states( additions = [state.coin for state in children] if len(children) > 0: - fee = 0 + fee = coin_state.coin.amount to_puzzle_hash = None # Find coin that doesn't belong to us amount = 0 for coin in additions: + fee = uint64(fee - coin.amount) derivation_record = await self.puzzle_store.get_derivation_record_for_puzzle_hash( coin.puzzle_hash )