Skip to content

Commit b52c002

Browse files
committed
Updates language for confirmation about revoking.
1 parent 7df8c1e commit b52c002

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

bittensor_cli/src/commands/stake/children_hotkeys.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ async def set_children_extrinsic(
8686
if prompt:
8787
if all_revoked:
8888
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}?"
9090
):
9191
return False, "Operation Cancelled"
9292
else:
@@ -136,17 +136,9 @@ async def set_children_extrinsic(
136136
console.print(":white_heavy_check_mark: [green]Included[/green]")
137137
if wait_for_finalization:
138138
console.print(":white_heavy_check_mark: [green]Finalized[/green]")
139-
# bittensor.logging.success(
140-
# prefix=operation,
141-
# suffix="<green>Finalized: </green>" + str(success),
142-
# )
143139
return True, f"Successfully {operation.lower()} and Finalized."
144140
else:
145141
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-
# )
150142
return False, error_message
151143

152144

@@ -613,7 +605,7 @@ async def revoke_children(
613605
Revokes the children hotkeys associated with a given network identifier (netuid).
614606
"""
615607
dict_output = {}
616-
if netuid:
608+
if netuid is not None:
617609
success, message = await set_children_extrinsic(
618610
subtensor=subtensor,
619611
wallet=wallet,

0 commit comments

Comments
 (0)