diff --git a/bittensor_cli/src/commands/stake/children_hotkeys.py b/bittensor_cli/src/commands/stake/children_hotkeys.py index 2f983890..fc913faa 100644 --- a/bittensor_cli/src/commands/stake/children_hotkeys.py +++ b/bittensor_cli/src/commands/stake/children_hotkeys.py @@ -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)}") @@ -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: