Skip to content

Commit

Permalink
correct wallet rpc api for get spendable coins with specified exclude…
Browse files Browse the repository at this point in the history
…d coins (#18768)

correct wallet rpc api for get spendable coins with specified excludied coins
  • Loading branch information
altendky authored Oct 28, 2024
1 parent c252a64 commit 6dee78a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chia/rpc/wallet_rpc_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 6dee78a

Please sign in to comment.