Skip to content
Open
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
20 changes: 10 additions & 10 deletions bittensor_cli/src/commands/stake/children_hotkeys.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)


Expand Down Expand Up @@ -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,
Expand All @@ -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:
Expand Down