Useful materials and tools for development on Ethereum.
News proposals @hirama
Post #593
52
Deploy at the same address on every chain, without shipping initcode.
Plain
One boundary worth knowing: with
pcaversaccio/createx
@soliditypedia
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
- 👍 1
