Skip to content

Commit

Permalink
remove bytes32 cast from debug_spend_bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-o-how committed Jan 8, 2025
1 parent 006c9df commit 94ca6d6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions chia/wallet/util/debug_spend_bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from chia.consensus.default_constants import DEFAULT_CONSTANTS
from chia.types.blockchain_format.coin import Coin
from chia.types.blockchain_format.program import INFINITE_COST, Program
from chia.types.blockchain_format.sized_bytes import bytes32
from chia.types.condition_opcodes import ConditionOpcode
from chia.util.condition_tools import conditions_dict_for_solution, pkm_pairs_for_conditions_dict
from chia.util.hash import std_hash
Expand Down Expand Up @@ -161,7 +160,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 = {bytes32(coin.name()) for coin in created if coin.amount == 0}
zero_coin_set = {coin.name() for coin in created if coin.amount == 0}

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

0 comments on commit 94ca6d6

Please sign in to comment.