Skip to content

Commit 1dddecb

Browse files
authored
Merge pull request #417 from opentensor/feat/thewhaleking/update-revoke-language
Update revoke children language
2 parents 37a312b + b52c002 commit 1dddecb

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
@@ -84,7 +84,7 @@ async def set_children_extrinsic(
8484
if prompt:
8585
if all_revoked:
8686
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}?"
8888
):
8989
return False, "Operation Cancelled"
9090
else:
@@ -134,17 +134,9 @@ async def set_children_extrinsic(
134134
console.print(":white_heavy_check_mark: [green]Included[/green]")
135135
if wait_for_finalization:
136136
console.print(":white_heavy_check_mark: [green]Finalized[/green]")
137-
# bittensor.logging.success(
138-
# prefix=operation,
139-
# suffix="<green>Finalized: </green>" + str(success),
140-
# )
141137
return True, f"Successfully {operation.lower()} and Finalized."
142138
else:
143139
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-
# )
148140
return False, error_message
149141

150142

@@ -611,7 +603,7 @@ async def revoke_children(
611603
Revokes the children hotkeys associated with a given network identifier (netuid).
612604
"""
613605
dict_output = {}
614-
if netuid:
606+
if netuid is not None:
615607
success, message = await set_children_extrinsic(
616608
subtensor=subtensor,
617609
wallet=wallet,

0 commit comments

Comments
 (0)