Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions bittensor_cli/src/commands/stake/children_hotkeys.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async def set_children_extrinsic(
if prompt:
if all_revoked:
if not Confirm.ask(
f"Do you want to revoke all children hotkeys for hotkey {hotkey}?"
f"Do you want to revoke all children hotkeys for hotkey {hotkey} on netuid {netuid}?"
):
return False, "Operation Cancelled"
else:
Expand Down Expand Up @@ -136,17 +136,9 @@ async def set_children_extrinsic(
console.print(":white_heavy_check_mark: [green]Included[/green]")
if wait_for_finalization:
console.print(":white_heavy_check_mark: [green]Finalized[/green]")
# bittensor.logging.success(
# prefix=operation,
# suffix="<green>Finalized: </green>" + str(success),
# )
return True, f"Successfully {operation.lower()} and Finalized."
else:
err_console.print(f":cross_mark: [red]Failed[/red]: {error_message}")
# bittensor.logging.warning(
# prefix=operation,
# suffix="<red>Failed: </red>" + str(error_message),
# )
return False, error_message


Expand Down Expand Up @@ -613,7 +605,7 @@ async def revoke_children(
Revokes the children hotkeys associated with a given network identifier (netuid).
"""
dict_output = {}
if netuid:
if netuid is not None:
success, message = await set_children_extrinsic(
subtensor=subtensor,
wallet=wallet,
Expand Down
Loading