Skip to content

Fix pranked CREATE2 address preimage#1069

Open
forkforkdog wants to merge 1 commit into
argotorg:mainfrom
forkforkdog:ffd/create2-prank-preimage
Open

Fix pranked CREATE2 address preimage#1069
forkforkdog wants to merge 1 commit into
argotorg:mainfrom
forkforkdog:ffd/create2-prank-preimage

Conversation

@forkforkdog

@forkforkdog forkforkdog commented Jun 13, 2026

Copy link
Copy Markdown

Summary

  • Use the pranked deployment source when deriving CREATE2 addresses.
  • Add a regression test for vm.prank followed by new ...{salt: ...}().

Root cause

The CREATE2 path applied overrideCaller to the constructor caller/deployment source, but still derived the CREATE2 address from self. That made the deployed address disagree with the pranked deployer semantics already used by CREATE.

Validation

  • git diff --check
  • solc --bin on the added Solidity regression fixture

@forkforkdog forkforkdog marked this pull request as ready for review June 13, 2026 15:09
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