Skip to content

Commit 6fc5c67

Browse files
committed
Removed prompt arg in root_register_extrinsic
& `burned_register_extrinsic` — it is already handled in `subnets.register`.
1 parent e07fd67 commit 6fc5c67

File tree

3 files changed

+1
-6
lines changed

3 files changed

+1
-6
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: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1656,15 +1656,12 @@ async def register(
16561656
return
16571657

16581658
if netuid == 0:
1659-
success, msg = await root_register_extrinsic(
1660-
subtensor, wallet=wallet, prompt=prompt
1661-
)
1659+
success, msg = await root_register_extrinsic(subtensor, wallet=wallet)
16621660
else:
16631661
success, msg = await burned_register_extrinsic(
16641662
subtensor,
16651663
wallet=wallet,
16661664
netuid=netuid,
1667-
prompt=prompt,
16681665
old_balance=balance,
16691666
era=era,
16701667
)

0 commit comments

Comments
 (0)