File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
bittensor_cli/src/commands Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff 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 } ."
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments