Skip to content

Commit c2d7e7c

Browse files
committed
Cleanup
1 parent 600676f commit c2d7e7c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

bittensor_cli/cli.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3234,10 +3234,8 @@ def stake_remove(
32343234
"Enter the [blue]hotkey[/blue] name or [blue]ss58 address[/blue] to unstake all from [dim](or enter 'all' to unstake from all hotkeys)[/dim]",
32353235
default=self.config.get("wallet_hotkey") or defaults.wallet.hotkey,
32363236
)
3237-
elif hotkey_ss58_address:
3238-
hotkey_or_ss58 = hotkey_ss58_address
32393237
else:
3240-
hotkey_or_ss58 = wallet_hotkey
3238+
hotkey_or_ss58 = hotkey_ss58_address or wallet_hotkey
32413239

32423240
if is_valid_ss58_address(hotkey_or_ss58):
32433241
hotkey_ss58_address = hotkey_or_ss58

tests/e2e_tests/test_unstaking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def test_unstaking(local_chain, wallet_setup):
9797
)
9898
assert "✅ Registered subnetwork with netuid: 3" in result.stdout
9999

100-
# Register Bob in both subnets
100+
# Register Bob in one subnet
101101
register_result = exec_command_bob(
102102
command="subnets",
103103
sub_command="register",

0 commit comments

Comments
 (0)