❔ How to Use CreateX on Abstract?
#241
-
|
I'm having trouble deploying contracts with CreateX on Abstract. I get a |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 15 replies
-
|
Hey there! coffee from the Abstract team here - can you provide a little more details about what you are trying to deploy and if its possible that the contract deployment itself is reverting in the constructor? In general CreateX should work the same as on other chains as it is deployed as an EVM contract and not in zksync/EraVM mode. |
Beta Was this translation helpful? Give feedback.
-
|
Hello @coffeexcoin ! So basically I have this piece of code relying on const createX = await hre.ethers.getContractAt(createXAbi as unknown as any[], createXAddress, deployer);
const initCode = await factory.getDeployTransaction(...constructorArgs);
const { salt, guardedSalt } = await computeCreate3Salts(contractName, deployer);
const address = await computeCreate3Address(guardedSalt);
const tx = await createX.deployCreate3(salt, initCode.data) as TransactionResponse;
const receipt = await tx.wait();And with it I deploy a ERC1967 proxy for UUPS upgradability using |
Beta Was this translation helpful? Give feedback.
Is your implementation on Abstract also deployed as EVM (not EraVM)?
You cannot delegatecall between EVM and EraVM contracts