TGViewer
Solidity Treasures Solidity Treasures @soliditypedia · 4.28K subscribers
Post #593 71
Deploy at the same address on every chain, without shipping initcode.

Plain CREATE2 ties the deployed address to the init code hash, so any constructor change or compiler bump shifts your address across chains. CREATE3 breaks that link: the final address depends only on the deployer and salt, never on the bytecode. Deploy a minimal proxy via CREATE2, then have it CREATE your real contract, so the address is stable even if the contract itself changes.

createx packages this as a single deployed factory (same address on many chains) exposing CREATE, CREATE2, and CREATE3 helpers with salt guards against front-running and cross-chain replay.

One boundary worth knowing: with CREATE3 the constructor runs inside the intermediate proxy call, so msg.sender at construction is the proxy, not the factory or your EOA. Design initialization around that.

pcaversaccio/createx

@soliditypedia
GitHub GitHub - pcaversaccio/createx: Factory smart contract to make easier and safer usage of the `CREATE` and `CREATE2` EVM opcodes… Factory smart contract to make easier and safer usage of the `CREATE` and `CREATE2` EVM opcodes as well as of `CREATE3`-based (i.e. without an initcode factor) contract creations. - pcaversaccio/cr...
  • 👍 1
More from @soliditypedia
  1. Sep 18, 2026An on-chain guard for AI-agent transactions moves the trust to whoever signs the attestati…
  2. Sep 16, 2026A generalized MEV bot beat the attacker to the rsETH exploit in the same block When the ex…
  3. Sep 15, 2026Public-mempool gas sponsorship can't have all three: no locked money, no off-chain trust,…
  4. Sep 13, 2026A QEMU/KVM sandbox is not a boundary for a cyber-capable agent Trail of Bits gave a fronti…
  5. Sep 12, 2026This week in Solidity Allbridge halted its core bridge after a $1.65M exploit: a $1.12M Ka…
  6. Sep 11, 2026Two Solidity codegen bugs disclosed via the EF bug bounty Both are silent memory corruptio…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →