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 @@ -86,7 +86,7 @@ async def set_children_extrinsic(
86
86
if prompt :
87
87
if all_revoked :
88
88
if not Confirm .ask (
89
- f"Do you want to revoke all children hotkeys for hotkey { hotkey } ?"
89
+ f"Do you want to revoke all children hotkeys for hotkey { hotkey } on netuid { netuid } ?"
90
90
):
91
91
return False , "Operation Cancelled"
92
92
else :
@@ -136,17 +136,9 @@ async def set_children_extrinsic(
136
136
console .print (":white_heavy_check_mark: [green]Included[/green]" )
137
137
if wait_for_finalization :
138
138
console .print (":white_heavy_check_mark: [green]Finalized[/green]" )
139
- # bittensor.logging.success(
140
- # prefix=operation,
141
- # suffix="<green>Finalized: </green>" + str(success),
142
- # )
143
139
return True , f"Successfully { operation .lower ()} and Finalized."
144
140
else :
145
141
err_console .print (f":cross_mark: [red]Failed[/red]: { error_message } " )
146
- # bittensor.logging.warning(
147
- # prefix=operation,
148
- # suffix="<red>Failed: </red>" + str(error_message),
149
- # )
150
142
return False , error_message
151
143
152
144
@@ -613,7 +605,7 @@ async def revoke_children(
613
605
Revokes the children hotkeys associated with a given network identifier (netuid).
614
606
"""
615
607
dict_output = {}
616
- if netuid :
608
+ if netuid is not None :
617
609
success , message = await set_children_extrinsic (
618
610
subtensor = subtensor ,
619
611
wallet = wallet ,
You can’t perform that action at this time.
0 commit comments