Skip to content

Commit

Permalink
chore: aligning kmd config resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
aorumbayev committed Dec 18, 2024
1 parent f2ff19e commit 100d0a2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/algokit_utils/clients/client_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit 100d0a2

Please sign in to comment.