Skip to content

Commit cc80115

Browse files
committed
add hk display
1 parent fbb721e commit cc80115

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

bittensor_cli/cli.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2302,6 +2302,7 @@ def wallet_associate_hotkey(
23022302
"[blue]hotkey ss58 address[/blue] [dim](to associate with your coldkey)[/dim]"
23032303
)
23042304

2305+
hotkey_display = None
23052306
if is_valid_ss58_address(wallet_hotkey):
23062307
hotkey_ss58 = wallet_hotkey
23072308
wallet = self.wallet_ask(
@@ -2311,6 +2312,9 @@ def wallet_associate_hotkey(
23112312
ask_for=[WO.NAME, WO.PATH],
23122313
validate=WV.WALLET,
23132314
)
2315+
hotkey_display = (
2316+
f"hotkey [{COLORS.GENERAL.HK}]{hotkey_ss58}[/{COLORS.GENERAL.HK}]"
2317+
)
23142318
else:
23152319
wallet = self.wallet_ask(
23162320
wallet_name,
@@ -2320,10 +2324,15 @@ def wallet_associate_hotkey(
23202324
validate=WV.WALLET_AND_HOTKEY,
23212325
)
23222326
hotkey_ss58 = wallet.hotkey.ss58_address
2327+
hotkey_display = f"hotkey [blue]{wallet_hotkey}[/blue] [{COLORS.GENERAL.HK}]({hotkey_ss58})[/{COLORS.GENERAL.HK}]"
23232328

23242329
return self._run_command(
23252330
wallets.associate_hotkey(
2326-
wallet, self.initialize_chain(network), hotkey_ss58, prompt
2331+
wallet,
2332+
self.initialize_chain(network),
2333+
hotkey_ss58,
2334+
hotkey_display,
2335+
prompt,
23272336
)
23282337
)
23292338

0 commit comments

Comments
 (0)