@@ -1798,23 +1798,23 @@ async def swap_hotkey_extrinsic(
1798
1798
if netuid is not None :
1799
1799
confirm_message = (
1800
1800
f"Do you want to swap [dark_orange]{ wallet .name } [/dark_orange] hotkey \n \t "
1801
- f"[dark_orange]{ wallet .hotkey .ss58_address } [/dark_orange] with hotkey \n \t "
1802
- f"[dark_orange]{ new_wallet .hotkey .ss58_address } [/dark_orange] on subnet { netuid } \n "
1801
+ f"[dark_orange]{ wallet .hotkey .ss58_address } ( { wallet . hotkey_str } ) [/dark_orange] with hotkey \n \t "
1802
+ f"[dark_orange]{ new_wallet .hotkey .ss58_address } ( { new_wallet . hotkey_str } ) [/dark_orange] on subnet { netuid } \n "
1803
1803
"This operation will cost [bold cyan]1 TAO (recycled)[/bold cyan]"
1804
1804
)
1805
1805
else :
1806
1806
confirm_message = (
1807
1807
f"Do you want to swap [dark_orange]{ wallet .name } [/dark_orange] hotkey \n \t "
1808
- f"[dark_orange]{ wallet .hotkey .ss58_address } [/dark_orange] with hotkey \n \t "
1809
- f"[dark_orange]{ new_wallet .hotkey .ss58_address } [/dark_orange] on all subnets\n "
1808
+ f"[dark_orange]{ wallet .hotkey .ss58_address } ( { wallet . hotkey_str } ) [/dark_orange] with hotkey \n \t "
1809
+ f"[dark_orange]{ new_wallet .hotkey .ss58_address } ( { new_wallet . hotkey_str } ) [/dark_orange] on all subnets\n "
1810
1810
"This operation will cost [bold cyan]1 TAO (recycled)[/bold cyan]"
1811
1811
)
1812
1812
1813
1813
if not Confirm .ask (confirm_message ):
1814
1814
return False
1815
1815
print_verbose (
1816
- f"Swapping { wallet .name } 's hotkey ({ wallet .hotkey .ss58_address } ) with "
1817
- f"{ new_wallet .name } 's hotkey ({ new_wallet .hotkey .ss58_address } )"
1816
+ f"Swapping { wallet .name } 's hotkey ({ wallet .hotkey .ss58_address } - { wallet . hotkey_str } ) with "
1817
+ f"{ new_wallet .name } 's hotkey ({ new_wallet .hotkey .ss58_address } - { new_wallet . hotkey_str } )"
1818
1818
)
1819
1819
with console .status (":satellite: Swapping hotkeys..." , spinner = "aesthetic" ):
1820
1820
call_params = {
@@ -1832,7 +1832,7 @@ async def swap_hotkey_extrinsic(
1832
1832
1833
1833
if success :
1834
1834
console .print (
1835
- f"Hotkey { wallet .hotkey } swapped for new hotkey: { new_wallet .hotkey } "
1835
+ f"Hotkey { wallet .hotkey . ss58_address } ( { wallet . hotkey_str } ) swapped for new hotkey: { new_wallet .hotkey . ss58_address } ( { new_wallet . hotkey_str } ) "
1836
1836
)
1837
1837
return True
1838
1838
else :
0 commit comments