diff --git a/CHANGELOG.md b/CHANGELOG.md index be2bc9ade..18bfb4041 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/bittensor_cli/src/bittensor/extrinsics/registration.py b/bittensor_cli/src/bittensor/extrinsics/registration.py index 2632a69de..c230f1134 100644 --- a/bittensor_cli/src/bittensor/extrinsics/registration.py +++ b/bittensor_cli/src/bittensor/extrinsics/registration.py @@ -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. diff --git a/bittensor_cli/src/bittensor/extrinsics/root.py b/bittensor_cli/src/bittensor/extrinsics/root.py index aca5f07d1..d8d4900aa 100644 --- a/bittensor_cli/src/bittensor/extrinsics/root.py +++ b/bittensor_cli/src/bittensor/extrinsics/root.py @@ -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. diff --git a/bittensor_cli/src/commands/subnets/subnets.py b/bittensor_cli/src/commands/subnets/subnets.py index fd050bd0a..c8bba8436 100644 --- a/bittensor_cli/src/commands/subnets/subnets.py +++ b/bittensor_cli/src/commands/subnets/subnets.py @@ -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 diff --git a/bittensor_cli/src/commands/wallets.py b/bittensor_cli/src/commands/wallets.py index 006fb5119..ae6a01ab8 100644 --- a/bittensor_cli/src/commands/wallets.py +++ b/bittensor_cli/src/commands/wallets.py @@ -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: @@ -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: diff --git a/pyproject.toml b/pyproject.toml index 240c6f892..453f1ac1d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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 = [