Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion bittensor/core/extrinsics/asyncex/coldkey_swap.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,9 @@ async def swap_coldkey_announced_extrinsic(
# nonce). Drop the in-process nonce cache entry so the next extrinsic
# signed by this ss58 re-fetches from the chain instead of incrementing
# a stale value.
subtensor.substrate._nonces.pop(wallet.coldkeypub.ss58_address, None)
subtensor.substrate.clear_nonce_cache_for_account(
wallet.coldkeypub.ss58_address
)
logging.debug("[green]Coldkey swap executed successfully.[/green]")
else:
logging.error(f"[red]{response.message}[/red]")
Expand Down
2 changes: 1 addition & 1 deletion bittensor/core/extrinsics/asyncex/sudo.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ async def swap_coldkey_extrinsic(
# nonce). Drop the in-process nonce cache entry so the next extrinsic
# signed by this ss58 re-fetches from the chain instead of incrementing
# a stale value.
subtensor.substrate._nonces.pop(old_coldkey_ss58, None)
subtensor.substrate.clear_nonce_cache_for_account(old_coldkey_ss58)
return response


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ dependencies = [
"uvicorn",
"bittensor-drand>=1.3.0,<2.0.0",
"bittensor-wallet==4.0.1",
"async-substrate-interface>=2.0.3,<3.0.0",
"async-substrate-interface>=2.0.4,<3.0.0",
]

[project.optional-dependencies]
Expand Down
Loading