File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed
bittensor_cli/src/commands/stake Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff 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 )} . \n No 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 )} . \n No 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 (
You can’t perform that action at this time.
0 commit comments