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

## 9.4.2 /2025-04-22

## What's Changed
* Subnets Register Improvements by @thewhaleking in https://github.com/opentensor/btcli/pull/450
* Fix `KeyFileError: File is not writable` during `btcli wallet create` command by @basfroman in https://github.com/opentensor/btcli/pull/452

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

## 9.4.1 /2025-04-17

## What's Changed
Expand Down
1 change: 0 additions & 1 deletion bittensor_cli/src/bittensor/extrinsics/registration.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,6 @@ async def burned_register_extrinsic(
wait_for_inclusion: bool = True,
wait_for_finalization: bool = True,
era: Optional[int] = None,
prompt: bool = False,
) -> tuple[bool, str]:
"""Registers the wallet to chain by recycling TAO.

Expand Down
1 change: 0 additions & 1 deletion bittensor_cli/src/bittensor/extrinsics/root.py
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,6 @@ async def root_register_extrinsic(
wallet: Wallet,
wait_for_inclusion: bool = True,
wait_for_finalization: bool = True,
prompt: bool = False,
) -> tuple[bool, str]:
r"""Registers the wallet to root network.

Expand Down
4 changes: 3 additions & 1 deletion bittensor_cli/src/commands/subnets/subnets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1662,12 +1662,14 @@ async def register(
subtensor,
wallet=wallet,
netuid=netuid,
prompt=False,
old_balance=balance,
era=era,
)
if json_output:
json_console.print(json.dumps({"success": success, "msg": msg}))
else:
if not success:
err_console.print(f"Failure: {msg}")


# TODO: Confirm emissions, incentive, Dividends are to be fetched from subnet_state or keep NeuronInfo
Expand Down
10 changes: 4 additions & 6 deletions bittensor_cli/src/commands/wallets.py
Original file line number Diff line number Diff line change
Expand Up @@ -438,11 +438,10 @@ async def wallet_create(
"name": wallet.name,
"path": wallet.path,
"hotkey": wallet.hotkey_str,
"hotkey_ss58": wallet.hotkey.ss58_address,
"coldkey_ss58": wallet.coldkeypub.ss58_address,
}
except KeyFileError:
err = "KeyFileError: File is not writable"
except KeyFileError as error:
err = str(error)
print_error(err)
output_dict["error"] = err
try:
Expand All @@ -458,10 +457,9 @@ async def wallet_create(
"path": wallet.path,
"hotkey": wallet.hotkey_str,
"hotkey_ss58": wallet.hotkey.ss58_address,
"coldkey_ss58": wallet.coldkeypub.ss58_address,
}
except KeyFileError:
err = "KeyFileError: File is not writable"
except KeyFileError as error:
err = str(error)
print_error(err)
output_dict["error"] = err
if json_output:
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.4.1"
version = "9.4.2"
description = "Bittensor CLI"
readme = "README.md"
authors = [
Expand Down
Loading