Skip to content

Commit e4651ad

Browse files
authored
Merge pull request #405 from opentensor/fix/subnet-create-name
Fix: Removes name conflict in Sn create
2 parents 75733d9 + bb01ef7 commit e4651ad

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

bittensor_cli/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4763,7 +4763,7 @@ def subnets_create(
47634763
wallet_hotkey: str = Options.wallet_hotkey,
47644764
network: Optional[list[str]] = Options.network,
47654765
subnet_name: Optional[str] = typer.Option(
4766-
None, "--subnet-name", "--name", help="Name of the subnet"
4766+
None, "--subnet-name", help="Name of the subnet"
47674767
),
47684768
github_repo: Optional[str] = typer.Option(
47694769
None, "--github-repo", "--repo", help="GitHub repository URL"

tests/e2e_tests/test_staking_sudo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def test_staking(local_chain, wallet_setup):
5252
wallet_alice.name,
5353
"--wallet-hotkey",
5454
wallet_alice.hotkey_str,
55-
"--name",
55+
"--subnet-name",
5656
"Test Subnet",
5757
"--repo",
5858
"https://github.com/username/repo",

tests/e2e_tests/test_unstaking.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def test_unstaking(local_chain, wallet_setup):
4646
wallet_alice.name,
4747
"--wallet-hotkey",
4848
wallet_alice.hotkey_str,
49-
"--name",
49+
"--subnet-name",
5050
"Test Subnet 2",
5151
"--repo",
5252
"https://github.com/username/repo",
@@ -78,7 +78,7 @@ def test_unstaking(local_chain, wallet_setup):
7878
wallet_alice.name,
7979
"--wallet-hotkey",
8080
wallet_alice.hotkey_str,
81-
"--name",
81+
"--subnet-name",
8282
"Test Subnet 3",
8383
"--repo",
8484
"https://github.com/username/repo",

tests/e2e_tests/test_wallet_interactions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def test_wallet_overview_inspect(local_chain, wallet_setup):
5757
wallet.name,
5858
"--wallet-hotkey",
5959
wallet.hotkey_str,
60-
"--name",
60+
"--subnet-name",
6161
"Test Subnet",
6262
"--repo",
6363
"https://github.com/username/repo",
@@ -374,7 +374,7 @@ def test_wallet_identities(local_chain, wallet_setup):
374374
wallet_alice.name,
375375
"--wallet-hotkey",
376376
wallet_alice.hotkey_str,
377-
"--name",
377+
"--subnet-name",
378378
"Test Subnet",
379379
"--repo",
380380
"https://github.com/username/repo",

0 commit comments

Comments
 (0)