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

## 9.0.4 /2025-02-28

## What's Changed
* Hotkey SS58 in stake transfer interactive selection by @thewhaleking in https://github.com/opentensor/btcli/pull/345

**Full Changelog**: https://github.com/opentensor/btcli/compare/v9.0.3...v9.0.4

## 9.0.2 /2025-02-20

## What's Changed
Expand Down
8 changes: 4 additions & 4 deletions bittensor_cli/src/commands/stake/move.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,7 @@ async def stake_move_selection(


async def stake_transfer_selection(
wallet: Wallet,
subtensor: "SubtensorInterface",
wallet: Wallet, subtensor: "SubtensorInterface", origin_hotkey: str
):
"""Selection interface for transferring stakes."""
(
Expand All @@ -353,7 +352,7 @@ async def stake_transfer_selection(

available_stakes = {}
for stake in stakes:
if stake.stake.tao > 0 and stake.hotkey_ss58 == wallet.hotkey.ss58_address:
if stake.stake.tao > 0 and stake.hotkey_ss58 == origin_hotkey:
available_stakes[stake.netuid] = {
"hotkey_ss58": stake.hotkey_ss58,
"stake": stake.stake,
Expand Down Expand Up @@ -718,8 +717,9 @@ async def transfer_stake(
Returns:
bool: True if transfer was successful, False otherwise.
"""
origin_hotkey = origin_hotkey or wallet.hotkey.ss58_address
if interactive_selection:
selection = await stake_transfer_selection(wallet, subtensor)
selection = await stake_transfer_selection(wallet, subtensor, origin_hotkey)
origin_netuid = selection["origin_netuid"]
amount = selection["amount"]
dest_netuid = selection["destination_netuid"]
Expand Down
3 changes: 2 additions & 1 deletion bittensor_cli/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ def version_as_int(version):
__new_signature_version__ = 360
return __version_as_int__

__version__ = "9.0.2"

__version__ = "9.0.4"
__version_as_int__ = version_as_int(__version__)