Skip to content

Commit bd6af44

Browse files
committed
Merge remote-tracking branch 'origin/staging' into feat/thewhaleking/use-unlock-key
2 parents d0011f9 + 91822be commit bd6af44

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

bittensor_cli/src/commands/stake/children_hotkeys.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,8 @@ async def display_chk_take(ss58, netuid):
671671
chk_take = await get_childkey_take(
672672
subtensor=subtensor, netuid=netuid, hotkey=ss58
673673
)
674+
if chk_take is None:
675+
chk_take = 0
674676
chk_take = u16_to_float(chk_take)
675677
console.print(
676678
f"Child take for {ss58} is: {chk_take * 100:.2f}% on netuid {netuid}."

bittensor_cli/src/commands/subnets/subnets.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,10 @@ async def _find_event_attributes_in_extrinsic_receipt(
9797
sn_burn_cost = await burn_cost(subtensor)
9898
if sn_burn_cost > your_balance:
9999
err_console.print(
100-
f"Your balance of: [{COLOR_PALETTE['POOLS']['TAO']}]{your_balance}[{COLOR_PALETTE['POOLS']['TAO']}] is not enough to pay the subnet lock cost of: "
101-
f"[{COLOR_PALETTE['POOLS']['TAO']}]{sn_burn_cost}[{COLOR_PALETTE['POOLS']['TAO']}]"
100+
f"Your balance of: [{COLOR_PALETTE['POOLS']['TAO']}]{your_balance}[{COLOR_PALETTE['POOLS']['TAO']}]"
101+
f" is not enough to burn "
102+
f"[{COLOR_PALETTE['POOLS']['TAO']}]{sn_burn_cost}[{COLOR_PALETTE['POOLS']['TAO']}] "
103+
f"to register a subnet."
102104
)
103105
return False
104106

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

0 commit comments

Comments
 (0)