Skip to content

Commit ac40408

Browse files
committed
Didn't specify the wallet in the test
1 parent 217ead5 commit ac40408

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

bittensor_cli/src/commands/sudo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ async def set_hyperparameter_extrinsic(
201201
)
202202
if subnet_owner != wallet.coldkeypub.ss58_address:
203203
err_msg = (
204-
f":cross_mark: [red]This wallet doesn't own the specified subnet.[/red]"
204+
":cross_mark: [red]This wallet doesn't own the specified subnet.[/red]"
205205
)
206206
err_console.print(err_msg)
207207
return False, err_msg

tests/e2e_tests/test_hyperparams_setting.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def test_hyperparams_setting(local_chain, wallet_setup):
2626
extra_args=[
2727
"--wallet-path",
2828
wallet_path_alice,
29-
"--chain",
29+
"--network",
3030
"ws://127.0.0.1:9945",
3131
"--wallet-name",
3232
wallet_alice.name,
@@ -55,12 +55,19 @@ def test_hyperparams_setting(local_chain, wallet_setup):
5555
result_output = json.loads(result.stdout)
5656
assert result_output["success"] is True
5757
assert result_output["netuid"] == netuid
58+
print(result_output)
5859

5960
# Fetch the hyperparameters of the subnet
6061
hyperparams = exec_command_alice(
6162
command="sudo",
6263
sub_command="get",
63-
extra_args=["--chain", "ws://127.0.0.1:9945", "--netuid", netuid, "--json-out"],
64+
extra_args=[
65+
"--network",
66+
"ws://127.0.0.1:9945",
67+
"--netuid",
68+
netuid,
69+
"--json-out",
70+
],
6471
)
6572

6673
# Parse all hyperparameters and single out max_burn in TAO
@@ -85,8 +92,14 @@ def test_hyperparams_setting(local_chain, wallet_setup):
8592
command="sudo",
8693
sub_command="set",
8794
extra_args=[
95+
"--wallet-path",
96+
wallet_path_alice,
8897
"--network",
8998
"ws://127.0.0.1:9945",
99+
"--wallet-name",
100+
wallet_alice.name,
101+
"--wallet-hotkey",
102+
wallet_alice.hotkey_str,
90103
"--netuid",
91104
netuid,
92105
"--json-out",

0 commit comments

Comments
 (0)