Skip to content

Commit 2adc78f

Browse files
authored
Merge pull request #450 from opentensor/fix/thewhaleking/handle-non-json-failure-in-register
Subnets Register Improvements
2 parents 4634592 + 6fc5c67 commit 2adc78f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines 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

0 commit comments

Comments
 (0)