🙏 Support for CREATE3
#329
-
Why no CREATE3 support yet? Is it planned? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Well, Lines 163 to 167 in d33ed8a Lines 296 to 300 in d33ed8a with (simply replace createReceipt[i] = await create2Deployer[i].deployCreate3(
hre.ethers.id(hre.config.xdeploy.salt),
initcode.data,
{ gasLimit: hre.config.xdeploy.gasLimit },
); and make sure the computed addresses are correct as well; thus replace in the following lines: Lines 129 to 134 in d33ed8a Lines 273 to 278 in d33ed8a with (simply replace computedContractAddress = await create2Deployer[
i
].computeCreate3Address(
hre.ethers.keccak256(hre.ethers.id(hre.config.xdeploy.salt)),
hre.ethers.keccak256(initcode.data),
); |
Beta Was this translation helpful? Give feedback.
Well,
xdeployer
intentionally focuses only onCREATE2
-based deployments (i.e. contract creation bytecode equivalence) and I do not plan to addCREATE3
-based deployments for now (the same forCREATE
-based deployments). That being said, it is very easy to enable support forCREATE3
locally for you; replace in the following lines:xdeployer/src/index.ts
Lines 163 to 167 in d33ed8a
xdeployer/src/index.ts
Lines 296 to 300 in d33ed8a