[ZK Stack] - initcode too large #714
-
Module Affected
Rust Version1.80.1 Operating System
Issue DescriptionI was trying to deploy Zk stack on holesky and I encountered this error: Edit: Tutorial Im following: https://code.zksync.io/tutorials/custom-zk-chain Thanks Expected BehaviorContracts get deployed Current BehaviorContracts not getting deployed. Repository Link (if applicable)No response Additional DetailsNo response Prior Research
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
It appears you are encountering an issue with the To address this issue, you can try the following solution:
For more detailed guidance on optimizing your contract's bytecode, you can refer to the hardhat-zksync-solc configuration. If you continue to face issues, please ensure that your contracts do not inherently exceed the size limits due to their complexity. In such cases, consider simplifying the contracts or splitting them into smaller modules. Your feedback helps us serve you better. If this fully addresses your question, please give it a thumbs up. If it doesn't, please give it a thumbs down. This will inform the community and team so we can improve our support. |
Beta Was this translation helpful? Give feedback.
-
Hello, thanks for the report. To confirm my understanding - are you running the Have you tried deploying your contracts to a local node? Does that work? |
Beta Was this translation helpful? Give feedback.
It looks like others have intermittently experienced a similar issue and was resolved using a holsky eth rpc with bigger limits and creating new docker containers. I can confirm using Ankr paid plan. Please see: matter-labs/zksync-era#2726 issue is isolated to Holesky RPC rather then zk_inception.