Skip to content

Commit

Permalink
Merge pull request #274 from opentensor/release/8.4.2
Browse files Browse the repository at this point in the history
Release/8.4.2
  • Loading branch information
ibraheem-opentensor authored Dec 12, 2024
2 parents 2833e36 + 4dc0a35 commit 8fdf04d
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 5 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 8.4.2 /2024-12-12

## What's Changed
* Removes the `.value` checks as we no longer use SCALE objects. by @thewhaleking in https://github.com/opentensor/btcli/pull/270
* Backmerge main to staging 842 by @ibraheem-opentensor in https://github.com/opentensor/btcli/pull/273

**Full Changelog**: https://github.com/opentensor/btcli/compare/v8.4.1...v8.4.2

## 8.4.1 /2024-12-05

## What's Changed
Expand Down
2 changes: 1 addition & 1 deletion bittensor_cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
from .cli import CLIManager


__version__ = "8.4.1"
__version__ = "8.4.2"

__all__ = ["CLIManager", "__version__"]
2 changes: 1 addition & 1 deletion bittensor_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class GitError(Exception):
pass


__version__ = "8.4.1"
__version__ = "8.4.2"


_core_version = re.match(r"^\d+\.\d+\.\d+", __version__).group(0)
Expand Down
6 changes: 3 additions & 3 deletions bittensor_cli/src/commands/stake/children_hotkeys.py
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ async def get_childkey_take(subtensor, hotkey: str, netuid: int) -> Optional[int
params=[hotkey, netuid],
)
if childkey_take_:
return int(childkey_take_.value)
return int(childkey_take_)

except SubstrateRequestException as e:
err_console.print(f"Error querying ChildKeys: {format_error_message(e)}")
Expand Down Expand Up @@ -300,8 +300,8 @@ async def get_total_stake_for_hk(hotkey: str, parent: bool = False):
reuse_block_hash=True,
)
stake = (
Balance.from_rao(_result.value)
if getattr(_result, "value", None)
Balance.from_rao(_result)
if _result is not None
else Balance(0)
)
if parent:
Expand Down

0 comments on commit 8fdf04d

Please sign in to comment.