From bae735c144fe7979c191fb1f87604fdb6e5400ae Mon Sep 17 00:00:00 2001 From: tecnovert Date: Thu, 14 Nov 2024 15:41:16 +0200 Subject: [PATCH] api: Set correct default swap type for BCH. --- basicswap/ui/page_offers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basicswap/ui/page_offers.py b/basicswap/ui/page_offers.py index a3952fd..5c795c1 100644 --- a/basicswap/ui/page_offers.py +++ b/basicswap/ui/page_offers.py @@ -161,7 +161,7 @@ def parseOfferFormData(swap_client, form_data, page_data, options={}): page_data['swap_type'] = get_data_entry(form_data, 'swap_type') parsed_data['swap_type'] = page_data['swap_type'] swap_type = swap_type_from_string(parsed_data['swap_type']) - elif parsed_data['coin_from'] in swap_client.scriptless_coins or parsed_data['coin_to'] in swap_client.scriptless_coins: + elif parsed_data['coin_from'] in swap_client.adaptor_swap_only_coins or parsed_data['coin_to'] in swap_client.adaptor_swap_only_coins: parsed_data['swap_type'] = strSwapType(SwapTypes.XMR_SWAP) swap_type = SwapTypes.XMR_SWAP else: