From 2c2965ecfd03f6e6d9d96884d8c56c58ba514552 Mon Sep 17 00:00:00 2001 From: ibraheem-latent Date: Tue, 9 Dec 2025 14:13:08 -0800 Subject: [PATCH] Update to allow executing change extrinsic --- bittensor_cli/src/commands/stake/claim.py | 25 ++++++++++++----------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/bittensor_cli/src/commands/stake/claim.py b/bittensor_cli/src/commands/stake/claim.py index 2648ad926..396255198 100644 --- a/bittensor_cli/src/commands/stake/claim.py +++ b/bittensor_cli/src/commands/stake/claim.py @@ -150,19 +150,20 @@ async def set_claim_type( new_claim_info = {"type": claim_type} if _claim_types_equal(current_claim_info, new_claim_info): - msg = f"Claim type already set to {_format_claim_type_display(new_claim_info)}. \nNo change needed." - console.print(msg) - if json_output: - json_console.print( - json.dumps( - { - "success": True, - "message": msg, - "extrinsic_identifier": None, - } + if new_claim_info["type"] == "KeepSubnets": + msg = f"Claim type already set to {_format_claim_type_display(new_claim_info)}. \nNo change needed." + console.print(msg) + if json_output: + json_console.print( + json.dumps( + { + "success": True, + "message": msg, + "extrinsic_identifier": None, + } + ) ) - ) - return True, msg, None + return True, msg, None if prompt: console.print(