Skip to content

feat: automatic nonce management for sequential transactions#22

Merged
satoshai-dev merged 1 commit intomainfrom
feat/auto-nonce-management
Feb 26, 2026
Merged

feat: automatic nonce management for sequential transactions#22
satoshai-dev merged 1 commit intomainfrom
feat/auto-nonce-management

Conversation

@satoshai-dev
Copy link
Copy Markdown
Owner

Summary

  • Adds NonceTracker class that fetches initial nonce from chain and increments locally after each successful broadcast
  • Integrates nonce tracking into MockProviderHandler for both STX transfers and contract calls
  • Resets nonce tracking automatically between tests via fixture teardown
  • Includes 6 unit tests for the nonce tracker and changeset

Closes #3

Test plan

  • Unit tests verify fetch-on-first-use, increment, reset, and no-op before fetch
  • E2E: send 2+ sequential txs in one test on devnet — all should confirm without waiting between sends

🤖 Generated with Claude Code

Add NonceTracker that fetches initial nonce from chain and increments
locally after each broadcast. This allows sending multiple transactions
in a single test without waiting for each to confirm. Nonce tracking
resets automatically between tests via fixture teardown.

Closes #3

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@satoshai-dev satoshai-dev merged commit aac68c0 into main Feb 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: automatic nonce management for sequential transactions

1 participant