File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
bittensor_cli/src/commands/stake Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ async def set_children_extrinsic(
84
84
if prompt :
85
85
if all_revoked :
86
86
if not Confirm .ask (
87
- f"Do you want to revoke all children hotkeys for hotkey { hotkey } ?"
87
+ f"Do you want to revoke all children hotkeys for hotkey { hotkey } on netuid { netuid } ?"
88
88
):
89
89
return False , "Operation Cancelled"
90
90
else :
@@ -134,17 +134,9 @@ async def set_children_extrinsic(
134
134
console .print (":white_heavy_check_mark: [green]Included[/green]" )
135
135
if wait_for_finalization :
136
136
console .print (":white_heavy_check_mark: [green]Finalized[/green]" )
137
- # bittensor.logging.success(
138
- # prefix=operation,
139
- # suffix="<green>Finalized: </green>" + str(success),
140
- # )
141
137
return True , f"Successfully { operation .lower ()} and Finalized."
142
138
else :
143
139
err_console .print (f":cross_mark: [red]Failed[/red]: { error_message } " )
144
- # bittensor.logging.warning(
145
- # prefix=operation,
146
- # suffix="<red>Failed: </red>" + str(error_message),
147
- # )
148
140
return False , error_message
149
141
150
142
@@ -611,7 +603,7 @@ async def revoke_children(
611
603
Revokes the children hotkeys associated with a given network identifier (netuid).
612
604
"""
613
605
dict_output = {}
614
- if netuid :
606
+ if netuid is not None :
615
607
success , message = await set_children_extrinsic (
616
608
subtensor = subtensor ,
617
609
wallet = wallet ,
You can’t perform that action at this time.
0 commit comments