From 72fdcb93492d75e66851acdf20d55747e9d7df61 Mon Sep 17 00:00:00 2001 From: ibraheem-latent Date: Fri, 27 Feb 2026 11:45:48 -0800 Subject: [PATCH 1/2] remove custom err handling --- bittensor_cli/src/commands/wallets.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/bittensor_cli/src/commands/wallets.py b/bittensor_cli/src/commands/wallets.py index 84bd13c0..03293a61 100644 --- a/bittensor_cli/src/commands/wallets.py +++ b/bittensor_cli/src/commands/wallets.py @@ -2457,14 +2457,7 @@ async def execute_coldkey_swap( ) if not success: - if "Custom error: 21" in err_msg: - print_error( - "Failed to execute coldkey swap: The swap has been disputed.\n" - "The account is frozen until the triumvirate resolves the dispute.\n", - status=status, - ) - else: - print_error(f"Failed to execute coldkey swap: {err_msg}", status=status) + print_error(f"Failed to execute coldkey swap: {err_msg}", status=status) return False if mev_protection: From 13835f5e6a7a7b8937d725ad72c2fbcc59a06f3f Mon Sep 17 00:00:00 2001 From: ibraheem-latent Date: Fri, 27 Feb 2026 11:45:55 -0800 Subject: [PATCH 2/2] update e2e --- tests/e2e_tests/test_coldkey_swap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/e2e_tests/test_coldkey_swap.py b/tests/e2e_tests/test_coldkey_swap.py index 0f7f977c..276d709a 100644 --- a/tests/e2e_tests/test_coldkey_swap.py +++ b/tests/e2e_tests/test_coldkey_swap.py @@ -405,7 +405,7 @@ def test_coldkey_swap_dispute(local_chain, wallet_setup): "--no-prompt", ], ) - assert "The account is frozen" in execute.stderr, execute.stderr + assert "ColdkeySwapDisputed" in execute.stderr, execute.stderr status_after = exec_command_bob( command="wallet",