From aec630ec06fb679957c1c2940f37a28751fd427f Mon Sep 17 00:00:00 2001 From: ibraheem-latent Date: Fri, 5 Sep 2025 12:11:25 -0700 Subject: [PATCH 1/2] fixes registration check on new hotkey --- bittensor_cli/src/bittensor/extrinsics/registration.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bittensor_cli/src/bittensor/extrinsics/registration.py b/bittensor_cli/src/bittensor/extrinsics/registration.py index b2461d897..2c2371761 100644 --- a/bittensor_cli/src/bittensor/extrinsics/registration.py +++ b/bittensor_cli/src/bittensor/extrinsics/registration.py @@ -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: @@ -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( From 8b47647fe339800c2acf207610557e78bf12c5d1 Mon Sep 17 00:00:00 2001 From: ibraheem-latent Date: Fri, 5 Sep 2025 12:13:47 -0700 Subject: [PATCH 2/2] Bumps version & changelog --- CHANGELOG.md | 5 +++++ pyproject.toml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5aacd1c35..29dcf8531 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 767047b35..670149619 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = [