Skip to content

[WIP] Bittensor Quick Start (btqs) #182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 24 commits into
base: staging
Choose a base branch
from
Draft
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
4 changes: 2 additions & 2 deletions bittensor_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -3977,8 +3977,8 @@ def subnets_create(
wallet_name,
wallet_path,
wallet_hotkey,
ask_for=[WO.NAME, WO.PATH, WO.HOTKEY],
validate=WV.WALLET_AND_HOTKEY,
ask_for=[WO.NAME, WO.PATH],
validate=WV.WALLET,
)
return self._run_command(
subnets.create(wallet, self.initialize_chain(network), prompt)
Expand Down
3 changes: 2 additions & 1 deletion bittensor_cli/src/commands/subnets.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ async def _find_event_attributes_in_extrinsic_receipt(

print_verbose("Fetching lock_cost")
burn_cost = await lock_cost(subtensor)
print(burn_cost)
if burn_cost > your_balance:
err_console.print(
f"Your balance of: [green]{your_balance}[/green] is not enough to pay the subnet lock cost of: "
Expand Down Expand Up @@ -363,7 +364,7 @@ async def lock_cost(subtensor: "SubtensorInterface") -> Optional[Balance]:
method="get_network_registration_cost",
params=[],
)
if lc:
if lc is not None:
lock_cost_ = Balance(lc)
console.print(f"Subnet lock cost: [green]{lock_cost_}[/green]")
return lock_cost_
Expand Down
Empty file added btqs/__init__.py
Empty file.
Loading