Skip to content

Commit 9a38db2

Browse files
authored
Merge pull request #453 from opentensor/changelog/942
942: Updates changelog
2 parents 07c788d + 2375ab2 commit 9a38db2

File tree

6 files changed

+16
-10
lines changed

6 files changed

+16
-10
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 9.4.2 /2025-04-22
4+
5+
## What's Changed
6+
* Subnets Register Improvements by @thewhaleking in https://github.com/opentensor/btcli/pull/450
7+
* Fix `KeyFileError: File is not writable` during `btcli wallet create` command by @basfroman in https://github.com/opentensor/btcli/pull/452
8+
9+
**Full Changelog**: https://github.com/opentensor/btcli/compare/v9.4.1...v9.4.2
10+
311
## 9.4.1 /2025-04-17
412

513
## What's Changed

bittensor_cli/src/bittensor/extrinsics/registration.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,6 @@ async def burned_register_extrinsic(
678678
wait_for_inclusion: bool = True,
679679
wait_for_finalization: bool = True,
680680
era: Optional[int] = None,
681-
prompt: bool = False,
682681
) -> tuple[bool, str]:
683682
"""Registers the wallet to chain by recycling TAO.
684683

bittensor_cli/src/bittensor/extrinsics/root.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,6 @@ async def root_register_extrinsic(
290290
wallet: Wallet,
291291
wait_for_inclusion: bool = True,
292292
wait_for_finalization: bool = True,
293-
prompt: bool = False,
294293
) -> tuple[bool, str]:
295294
r"""Registers the wallet to root network.
296295

bittensor_cli/src/commands/subnets/subnets.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1662,12 +1662,14 @@ async def register(
16621662
subtensor,
16631663
wallet=wallet,
16641664
netuid=netuid,
1665-
prompt=False,
16661665
old_balance=balance,
16671666
era=era,
16681667
)
16691668
if json_output:
16701669
json_console.print(json.dumps({"success": success, "msg": msg}))
1670+
else:
1671+
if not success:
1672+
err_console.print(f"Failure: {msg}")
16711673

16721674

16731675
# TODO: Confirm emissions, incentive, Dividends are to be fetched from subnet_state or keep NeuronInfo

bittensor_cli/src/commands/wallets.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -438,11 +438,10 @@ async def wallet_create(
438438
"name": wallet.name,
439439
"path": wallet.path,
440440
"hotkey": wallet.hotkey_str,
441-
"hotkey_ss58": wallet.hotkey.ss58_address,
442441
"coldkey_ss58": wallet.coldkeypub.ss58_address,
443442
}
444-
except KeyFileError:
445-
err = "KeyFileError: File is not writable"
443+
except KeyFileError as error:
444+
err = str(error)
446445
print_error(err)
447446
output_dict["error"] = err
448447
try:
@@ -458,10 +457,9 @@ async def wallet_create(
458457
"path": wallet.path,
459458
"hotkey": wallet.hotkey_str,
460459
"hotkey_ss58": wallet.hotkey.ss58_address,
461-
"coldkey_ss58": wallet.coldkeypub.ss58_address,
462460
}
463-
except KeyFileError:
464-
err = "KeyFileError: File is not writable"
461+
except KeyFileError as error:
462+
err = str(error)
465463
print_error(err)
466464
output_dict["error"] = err
467465
if json_output:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "bittensor-cli"
7-
version = "9.4.1"
7+
version = "9.4.2"
88
description = "Bittensor CLI"
99
readme = "README.md"
1010
authors = [

0 commit comments

Comments
 (0)