Skip to content

Commit 116cec1

Browse files
committed
Small fixes
1 parent 000c5d6 commit 116cec1

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

bittensor_cli/src/bittensor/subtensor_interface.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,10 @@ async def sign_and_send_extrinsic(
11921192
:param proxy: The real account used to create the proxy. None if not using a proxy for this call.
11931193
:param nonce: The nonce used to submit this extrinsic call.
11941194
:param sign_with: Determine which of the wallet's keypairs to use to sign the extrinsic call.
1195-
:param announce_only: If set, makes the call as an announcement, rather than making the call.
1195+
:param announce_only: If set, makes the call as an announcement, rather than making the call. Cannot
1196+
be used with `mev_protection=True`.
1197+
:param mev_protection: If set, uses Mev Protection on the extrinsic, thus encrypting it. Cannot be
1198+
used with `announce_only=True`.
11961199
11971200
:return: (success, error message or inner extrinsic hash (if using mev_protection), extrinsic receipt | None)
11981201
"""
@@ -1204,7 +1207,7 @@ async def create_signed(call_to_sign, n):
12041207
"nonce": n,
12051208
}
12061209
if era is not None:
1207-
kwargs["era"] = {"period": era}
1210+
kwargs["era"] = era
12081211
return await self.substrate.create_signed_extrinsic(**kwargs)
12091212

12101213
if announce_only and mev_protection:

bittensor_cli/src/commands/stake/move.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,9 @@ async def transfer_stake(
767767
amount=amount_to_transfer.rao,
768768
),
769769
subtensor.get_extrinsic_fee(call, wallet.coldkeypub, proxy=proxy),
770-
subtensor.substrate.get_account_next_index(proxy or wallet.coldkeypub.ss58_address),
770+
subtensor.substrate.get_account_next_index(
771+
proxy or wallet.coldkeypub.ss58_address
772+
),
771773
)
772774

773775
# Display stake movement details
@@ -960,7 +962,9 @@ async def swap_stake(
960962
amount=amount_to_swap.rao,
961963
),
962964
subtensor.get_extrinsic_fee(call, wallet.coldkeypub, proxy=proxy),
963-
subtensor.substrate.get_account_next_index(proxy or wallet.coldkeypub.ss58_address),
965+
subtensor.substrate.get_account_next_index(
966+
proxy or wallet.coldkeypub.ss58_address
967+
),
964968
)
965969

966970
# Display stake movement details

bittensor_cli/src/commands/subnets/subnets.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ async def _find_event_attributes_in_extrinsic_receipt(
250250
wait_for_inclusion=wait_for_inclusion,
251251
wait_for_finalization=wait_for_finalization,
252252
proxy=proxy,
253+
nonce=next_nonce,
253254
mev_protection=mev_protection,
254255
)
255256

0 commit comments

Comments
 (0)