Skip to content

🙏 Support for CREATE3 #329

Closed Answered by pcaversaccio
sebastiantf asked this question in Q&A
Discussion options

You must be logged in to vote

Well, xdeployer intentionally focuses only on CREATE2-based deployments (i.e. contract creation bytecode equivalence) and I do not plan to add CREATE3-based deployments for now (the same for CREATE-based deployments). That being said, it is very easy to enable support for CREATE3 locally for you; replace in the following lines:

xdeployer/src/index.ts

Lines 163 to 167 in d33ed8a

createReceipt[i] = await create2Deployer[i].deployCreate2(
hre.ethers.id(hre.config.xdeploy.salt),
initcode.data,
{ gasLimit: hre.config.xdeploy.gasLimit },
);

xdeployer/src/index.ts

Lines 296 to 300 in d33ed8a

createReceipt[i] = await create2Deployer[i].deployCreate2(

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@sebastiantf
Comment options

@pcaversaccio
Comment options

@sebastiantf
Comment options

Answer selected by pcaversaccio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
feature 💥 New feature or request
2 participants