Skip to content

Commit

Permalink
cast debug_spend_bundle coin name to bytes32
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-o-how committed Jan 6, 2025
1 parent e7af3ed commit 54c4f01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chia/wallet/util/debug_spend_bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from chia.consensus.default_constants import DEFAULT_CONSTANTS
from chia.types.blockchain_format.coin import Coin
from chia.types.blockchain_format.sized_bytes import bytes32
from chia.types.blockchain_format.program import INFINITE_COST, Program
from chia.types.condition_opcodes import ConditionOpcode
from chia.util.condition_tools import conditions_dict_for_solution, pkm_pairs_for_conditions_dict
Expand Down Expand Up @@ -160,7 +161,7 @@ def debug_spend_bundle(spend_bundle, agg_sig_additional_data=DEFAULT_CONSTANTS.A
created = set(spend_bundle.additions())
spent = set(spend_bundle.removals())

zero_coin_set = {coin.name() for coin in created if coin.amount == 0}
zero_coin_set = {bytes32(coin.name()) for coin in created if coin.amount == 0}

ephemeral = created.intersection(spent)
created.difference_update(ephemeral)
Expand Down

0 comments on commit 54c4f01

Please sign in to comment.