Skip to content

Commit 000c5d6

Browse files
committed
Resolved todos
1 parent b1b8748 commit 000c5d6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

bittensor_cli/src/commands/stake/move.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -767,8 +767,7 @@ async def transfer_stake(
767767
amount=amount_to_transfer.rao,
768768
),
769769
subtensor.get_extrinsic_fee(call, wallet.coldkeypub, proxy=proxy),
770-
# TODO should this be proxy or signer?
771-
subtensor.substrate.get_account_next_index(wallet.coldkeypub.ss58_address),
770+
subtensor.substrate.get_account_next_index(proxy or wallet.coldkeypub.ss58_address),
772771
)
773772

774773
# Display stake movement details
@@ -961,8 +960,7 @@ async def swap_stake(
961960
amount=amount_to_swap.rao,
962961
),
963962
subtensor.get_extrinsic_fee(call, wallet.coldkeypub, proxy=proxy),
964-
# TODO should this be proxy or signer?
965-
subtensor.substrate.get_account_next_index(wallet.coldkeypub.ss58_address),
963+
subtensor.substrate.get_account_next_index(proxy or wallet.coldkeypub.ss58_address),
966964
)
967965

968966
# Display stake movement details

tests/e2e_tests/test_unstaking.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def test_unstaking(local_chain, wallet_setup):
8989
"--no-prompt",
9090
],
9191
)
92+
print(result.stdout, result.stderr)
9293
assert "✅ Registered subnetwork with netuid: 2" in result.stdout
9394
assert "Your extrinsic has been included" in result.stdout, result.stdout
9495

0 commit comments

Comments
 (0)