Skip to content
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 9.10.2 /2025-09-05
* Fixes swap-hotkey in by @ibraheem-abe in https://github.com/opentensor/btcli/commit/aec630ec06fb679957c1c2940f37a28751fd427f

**Full Changelog**: https://github.com/opentensor/btcli/compare/v9.10.1...v9.10.2

## 9.10.1 /2025-08-12
* Removes double param for `--cache` in `config set` by @thewhaleking in https://github.com/opentensor/btcli/pull/579
* change root only sudo hyperparams by @thewhaleking in https://github.com/opentensor/btcli/pull/580
Expand Down
5 changes: 3 additions & 2 deletions bittensor_cli/src/bittensor/extrinsics/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -1757,11 +1757,13 @@ async def swap_hotkey_extrinsic(
"""
block_hash = await subtensor.substrate.get_chain_head()
hk_ss58 = get_hotkey_pub_ss58(wallet)
new_hk_ss58 = get_hotkey_pub_ss58(new_wallet)

netuids_registered = await subtensor.get_netuids_for_hotkey(
hk_ss58, block_hash=block_hash
)
netuids_registered_new_hotkey = await subtensor.get_netuids_for_hotkey(
hk_ss58, block_hash=block_hash
new_hk_ss58, block_hash=block_hash
)

if netuid is not None and netuid not in netuids_registered:
Expand All @@ -1777,7 +1779,6 @@ async def swap_hotkey_extrinsic(
)
return False

new_hk_ss58 = get_hotkey_pub_ss58(new_wallet)
if netuid is not None:
if netuid in netuids_registered_new_hotkey:
err_console.print(
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "bittensor-cli"
version = "9.10.1"
version = "9.10.2"
description = "Bittensor CLI"
readme = "README.md"
authors = [
Expand Down
Loading