Skip to content

Commit 438a6a5

Browse files
committed
Forgot to include the actual run logic.
1 parent 1694d4c commit 438a6a5

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

bittensor_cli/cli.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5817,13 +5817,26 @@ def subnets_set_symbol(
58175817
[green]$[/green] btcli subnets set-symbol --netuid 1 ‡
58185818
"""
58195819
self.verbosity_handler(quiet, verbose, json_output)
5820+
if len(symbol) > 1:
5821+
err_console.print("Your symbol must be a single character.")
5822+
return False
58205823
wallet = self.wallet_ask(
58215824
wallet_name,
58225825
wallet_path,
58235826
wallet_hotkey,
58245827
ask_for=[WO.NAME, WO.HOTKEY],
58255828
validate=WV.WALLET_AND_HOTKEY,
58265829
)
5830+
return self._run_command(
5831+
subnets.set_symbol(
5832+
wallet=wallet,
5833+
subtensor=self.initialize_chain(network),
5834+
netuid=netuid,
5835+
symbol=symbol,
5836+
prompt=prompt,
5837+
json_output=json_output,
5838+
)
5839+
)
58275840

58285841
def weights_reveal(
58295842
self,

0 commit comments

Comments
 (0)