Skip to content

docs: explain unordered nonce write order#284

Open
leno23 wants to merge 1 commit into
Uniswap:mainfrom
leno23:docs/explain-unordered-nonce-order
Open

docs: explain unordered nonce write order#284
leno23 wants to merge 1 commit into
Uniswap:mainfrom
leno23:docs/explain-unordered-nonce-order

Conversation

@leno23
Copy link
Copy Markdown

@leno23 leno23 commented May 18, 2026

Summary

  • Clarifies that _useUnorderedNonce flips an unordered nonce bit from 0 to 1.
  • Documents the compound assignment order: storage is updated first, then the updated word is assigned to flipped before the invalid nonce check.

Closes #217

Test Plan

  • npx --yes --package prettier@2.8.8 --package prettier-plugin-solidity@1.1.3 prettier --check src/SignatureTransfer.sol (existing baseline formatting mismatch also occurs on the HEAD version of this file)
  • git diff --check

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.

Explain order of operations in _useUnorderedNonce

2 participants