From 94ca6d67458193d2bb01bb9b0a3ba434b05de5a2 Mon Sep 17 00:00:00 2001 From: Matthew Howard Date: Wed, 8 Jan 2025 17:48:10 +0000 Subject: [PATCH] remove bytes32 cast from debug_spend_bundle --- chia/wallet/util/debug_spend_bundle.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chia/wallet/util/debug_spend_bundle.py b/chia/wallet/util/debug_spend_bundle.py index c455ee997fcc..2ffcf0163a10 100644 --- a/chia/wallet/util/debug_spend_bundle.py +++ b/chia/wallet/util/debug_spend_bundle.py @@ -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 @@ -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)