File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
bittensor_cli/src/bittensor/extrinsics Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -1757,11 +1757,13 @@ async def swap_hotkey_extrinsic(
1757
1757
"""
1758
1758
block_hash = await subtensor .substrate .get_chain_head ()
1759
1759
hk_ss58 = get_hotkey_pub_ss58 (wallet )
1760
+ new_hk_ss58 = get_hotkey_pub_ss58 (new_wallet )
1761
+
1760
1762
netuids_registered = await subtensor .get_netuids_for_hotkey (
1761
1763
hk_ss58 , block_hash = block_hash
1762
1764
)
1763
1765
netuids_registered_new_hotkey = await subtensor .get_netuids_for_hotkey (
1764
- hk_ss58 , block_hash = block_hash
1766
+ new_hk_ss58 , block_hash = block_hash
1765
1767
)
1766
1768
1767
1769
if netuid is not None and netuid not in netuids_registered :
@@ -1777,7 +1779,6 @@ async def swap_hotkey_extrinsic(
1777
1779
)
1778
1780
return False
1779
1781
1780
- new_hk_ss58 = get_hotkey_pub_ss58 (new_wallet )
1781
1782
if netuid is not None :
1782
1783
if netuid in netuids_registered_new_hotkey :
1783
1784
err_console .print (
You can’t perform that action at this time.
0 commit comments