Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions bittensor_cli/src/commands/wallets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e_tests/test_coldkey_swap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading