From 6dee78ad634449cf7534dc804129d1e42e1c0834 Mon Sep 17 00:00:00 2001 From: Kyle Altendorf Date: Mon, 28 Oct 2024 16:28:05 -0400 Subject: [PATCH] correct wallet rpc api for get spendable coins with specified excluded coins (#18768) correct wallet rpc api for get spendable coins with specified excludied coins --- chia/rpc/wallet_rpc_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chia/rpc/wallet_rpc_api.py b/chia/rpc/wallet_rpc_api.py index 5458195e5aed..caea37779563 100644 --- a/chia/rpc/wallet_rpc_api.py +++ b/chia/rpc/wallet_rpc_api.py @@ -1576,7 +1576,7 @@ async def get_spendable_coins(self, request: dict[str, Any]) -> EndpointResult: excluded_coin_amounts = [] excluded_coins_input: Optional[dict[str, dict[str, Any]]] = request.get("excluded_coins") if excluded_coins_input is not None: - excluded_coins = [Coin.from_json_dict(json_coin) for json_coin in excluded_coins_input] + excluded_coins = [Coin.from_json_dict(json_coin) for json_coin in excluded_coins_input.values()] else: excluded_coins = [] excluded_coin_ids_input: Optional[list[str]] = request.get("excluded_coin_ids")