Skip to content
Merged
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
2 changes: 0 additions & 2 deletions bittensor_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ class GitError(Exception):
pass




_epilog = "Made with [bold red]:heart:[/bold red] by The Openτensor Foundaτion"

np.set_printoptions(precision=8, suppress=True, floatmode="fixed")
Expand Down
8 changes: 5 additions & 3 deletions bittensor_cli/src/commands/subnets/subnets.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,10 @@ async def _find_event_attributes_in_extrinsic_receipt(
sn_burn_cost = await burn_cost(subtensor)
if sn_burn_cost > your_balance:
err_console.print(
f"Your balance of: [{COLOR_PALETTE['POOLS']['TAO']}]{your_balance}[{COLOR_PALETTE['POOLS']['TAO']}] is not enough to pay the subnet lock cost of: "
f"[{COLOR_PALETTE['POOLS']['TAO']}]{sn_burn_cost}[{COLOR_PALETTE['POOLS']['TAO']}]"
f"Your balance of: [{COLOR_PALETTE['POOLS']['TAO']}]{your_balance}[{COLOR_PALETTE['POOLS']['TAO']}]"
f" is not enough to burn "
f"[{COLOR_PALETTE['POOLS']['TAO']}]{sn_burn_cost}[{COLOR_PALETTE['POOLS']['TAO']}] "
f"to register a subnet."
)
return False

Expand All @@ -107,7 +109,7 @@ async def _find_event_attributes_in_extrinsic_receipt(
f"Your balance is: [{COLOR_PALETTE['POOLS']['TAO']}]{your_balance}"
)
if not Confirm.ask(
f"Do you want to register a subnet for [{COLOR_PALETTE['POOLS']['TAO']}]{sn_burn_cost}?"
f"Do you want to burn [{COLOR_PALETTE['POOLS']['TAO']}]{sn_burn_cost} to register a subnet?"
):
return False

Expand Down
2 changes: 2 additions & 0 deletions bittensor_cli/version.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import re


def version_as_int(version):
_core_version = re.match(r"^\d+\.\d+\.\d+", version).group(0)
_version_split = _core_version.split(".")
Expand All @@ -14,5 +15,6 @@ def version_as_int(version):
__new_signature_version__ = 360
return __version_as_int__


__version__ = "9.0.0"
__version_as_int__ = version_as_int(__version__)
Loading