Skip to content

fix(25_Create2): guard invalid pair creation - #933

Open
vuyua9 wants to merge 1 commit into
AmazingAng:mainfrom
vuyua9:codex/create2-guardrails-20260813
Open

vuyua9 wants to merge 1 commit into
AmazingAng:mainfrom
vuyua9:codex/create2-guardrails-20260813

Conversation

@vuyua9

@vuyua9 vuyua9 commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Reject zero-address tokens before calculating or deploying a pair.
  • Reject duplicate token pairs before the CREATE2 deployment path.
  • Add regression coverage for zero addresses, identical addresses, and duplicate pairs.

Validation

  • node --check 25_Create2/create2test.js
  • git diff --check
  • Static assertions confirmed all three revert paths and that PAIR_EXISTS is checked before new Pair{salt: salt}().

The repository checkout does not provide forge, solc, or a Hardhat dependency, so Solidity compilation and execution of the Hardhat tests could not be run locally.

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.

1 participant