From 100d0a27775093c3705264eef435baa045107a90 Mon Sep 17 00:00:00 2001 From: Altynbek Orumbayev Date: Wed, 18 Dec 2024 17:01:21 +0100 Subject: [PATCH] chore: aligning kmd config resolution --- src/algokit_utils/clients/client_manager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/algokit_utils/clients/client_manager.py b/src/algokit_utils/clients/client_manager.py index c2ccab5..080fd62 100644 --- a/src/algokit_utils/clients/client_manager.py +++ b/src/algokit_utils/clients/client_manager.py @@ -294,7 +294,9 @@ def get_config_from_environment_or_localnet() -> AlgoClientConfigs: # Include KMD config only for local networks (not mainnet/testnet) kmd_config = ( - ClientManager.get_kmd_config_from_environment() + AlgoClientConfig( + server=algod_config.server, token=algod_config.token, port=os.getenv("KMD_PORT", "4002") + ) if not any(net in algod_server.lower() for net in ["mainnet", "testnet"]) else None )