Skip to content

Commit 2c2965e

Browse files
committed
Update to allow executing change extrinsic
1 parent 2d92d83 commit 2c2965e

File tree

1 file changed

+13
-12
lines changed
  • bittensor_cli/src/commands/stake

1 file changed

+13
-12
lines changed

bittensor_cli/src/commands/stake/claim.py

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -150,19 +150,20 @@ async def set_claim_type(
150150
new_claim_info = {"type": claim_type}
151151

152152
if _claim_types_equal(current_claim_info, new_claim_info):
153-
msg = f"Claim type already set to {_format_claim_type_display(new_claim_info)}. \nNo change needed."
154-
console.print(msg)
155-
if json_output:
156-
json_console.print(
157-
json.dumps(
158-
{
159-
"success": True,
160-
"message": msg,
161-
"extrinsic_identifier": None,
162-
}
153+
if new_claim_info["type"] == "KeepSubnets":
154+
msg = f"Claim type already set to {_format_claim_type_display(new_claim_info)}. \nNo change needed."
155+
console.print(msg)
156+
if json_output:
157+
json_console.print(
158+
json.dumps(
159+
{
160+
"success": True,
161+
"message": msg,
162+
"extrinsic_identifier": None,
163+
}
164+
)
163165
)
164-
)
165-
return True, msg, None
166+
return True, msg, None
166167

167168
if prompt:
168169
console.print(

0 commit comments

Comments
 (0)