[Deployment] Universal Deployer #1000
-
Team or ProjectSequence ZK chainZkSync Sepolia EnvironmentTestnet L2 block numberNo response zkSolc Versionxxx zksync-ethers Versionxxx Minimal Reproducible Code or Repo Linkhttps://gist.github.com/Agusx1211/de05dabf918d448d315aa018e2572031 Does this work on other EVMs? (If yes, please list at least 1 of them)All of them... Mainnet, Optimism, Arbitrum,.... Description of What Your Contract DoesA CREATE2 deployer with a fix address similar to ERC-2470 Additional DetailsHi team. We had an issue deploying one of our deployer contracts. Could you help us debug what caused this issue? https://sepolia.explorer.zksync.io/tx/0xe25e191d75728579e7bc10a220798ce9cc94de5acbc4d2e274f290db52ecfe43#overview Also, this transaction was a presigned we need to work so we can have a consistent deployment address for the contract. It looks like this failure resulted in a nonce increment. See https://gist.github.com/Agusx1211/de05dabf918d448d315aa018e2572031 (similar flow to ERC-2470). Is there a way we can revert the nonce of the EOA or force the transaction/deployment to get this contract at the correct address? I suspect this is related to: #870 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Hey there 👋 I can investigate further but pre-signed or keyless txs may not work as expected with EVM interpreter due to the gas model differences. Refer here for details. Nonetheless I will look into further to confirm. |
Beta Was this translation helpful? Give feedback.
-
This still looks to be an issue. Here's another failing transaction with similar parameters: https://sepolia.explorer.zksync.io/tx/0xa50c29117ab8f123fe11b11926e5332fe80987f2b35e09bd5220cc02f941d6aa |
Beta Was this translation helpful? Give feedback.
-
Apologies for not following back up here - due to the differences in gas accounting pre-signed transactions will fail. We have other pre-deployed contracts that may be used, however Universal Deployer will need to be included in a future protocol upgrade. |
Beta Was this translation helpful? Give feedback.
-
If we can add this to the network as part of a protocol upgrade that would be fantastic! The contract's address is |
Beta Was this translation helpful? Give feedback.
Apologies for not following back up here - due to the differences in gas accounting pre-signed transactions will fail. We have other pre-deployed contracts that may be used, however Universal Deployer will need to be included in a future protocol upgrade.