From 9ca29e5fabb423391621345d287d918660c66dd9 Mon Sep 17 00:00:00 2001 From: skooota Date: Tue, 13 Jan 2026 14:13:00 -0500 Subject: [PATCH] hotkey bug not allowing the user to set a different childkey --- .../src/commands/stake/children_hotkeys.py | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/bittensor_cli/src/commands/stake/children_hotkeys.py b/bittensor_cli/src/commands/stake/children_hotkeys.py index d4fb17998..d9c937949 100644 --- a/bittensor_cli/src/commands/stake/children_hotkeys.py +++ b/bittensor_cli/src/commands/stake/children_hotkeys.py @@ -2,28 +2,28 @@ import json from typing import Optional +from async_substrate_interface.errors import SubstrateRequestException from bittensor_wallet import Wallet -from rich.prompt import IntPrompt, FloatPrompt +from rich.prompt import FloatPrompt, IntPrompt from rich.table import Table from rich.text import Text -from async_substrate_interface.errors import SubstrateRequestException from bittensor_cli.src.bittensor.balances import Balance from bittensor_cli.src.bittensor.subtensor_interface import SubtensorInterface from bittensor_cli.src.bittensor.utils import ( confirm_action, console, - print_error, float_to_u16, float_to_u64, - u16_to_float, - u64_to_float, - is_valid_ss58_address, format_error_message, - unlock_key, - json_console, get_hotkey_pub_ss58, + is_valid_ss58_address, + json_console, + print_error, print_extrinsic_id, + u16_to_float, + u64_to_float, + unlock_key, ) @@ -775,7 +775,7 @@ async def set_chk_take_subnet( subtensor=subtensor, wallet=wallet, netuid=subnet, - hotkey=get_hotkey_pub_ss58(wallet), + hotkey=hotkey, take=chk_take, proxy=proxy, prompt=prompt, @@ -786,7 +786,7 @@ async def set_chk_take_subnet( if success_: console.print(":white_heavy_check_mark: [green]Set childkey take.[/green]") console.print( - f"The childkey take for {get_hotkey_pub_ss58(wallet)} is now set to {take * 100:.2f}%." + f"The childkey take for {hotkey} is now set to {take * 100:.2f}%." ) return True, ext_id_ else: