Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeployL2Contracts.sol Failed to run #2726

Open
Teamvalid opened this issue Aug 25, 2024 · 1 comment
Open

DeployL2Contracts.sol Failed to run #2726

Teamvalid opened this issue Aug 25, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Teamvalid
Copy link

🐛 Bug Report

📝 Description: Command failed to run: forge script deploy-scripts/DeployL2Contracts.sol --legacy --ffi --rpc-url=https://eth-holesky.g.alchemy.com/v2/gX4Bzzy0OfPTnC-SoNcdCAeXg_SUk3KB --broadcast --private-key=71abce8005cdc18fff97e1381c974497ccd24f0d85b5b3d82c4885f90519c73c

Provide a clear and concise description of the bug.

🔄 Reproduction Steps: Error found while deploying zkSync era on Holsky testnet.

Run the zkSync for testnet Holsky. I gave "https://eth-holesky.g.alchemy.com/v2/gX4Bzzy0OfPTnC-SoNcdCAeXg_SUk3KB" as my L1 RPC URL. Upon deployment I get the following error mentioned in log output.

│ Stderr:
│ Error:
│ Failed to send transaction
│ Context:
│ - server returned an error response: error code -32000: invalid: initcode too large
2024-08-25 15_18_53-

🤔 Expected Behavior

zkSync should get deployed on Sepoli/Holsky L1 testnet.

😯 Current Behavior

Getting error as mentioned above.

🖥️ Environment

Any relevant environment details.

📋 Additional Context

Add any other context about the problem here. If applicable, add screenshots to help explain.

📎 Log Output

◓  Accepting admin...                                                                                                                                                                   ◇  Accepting governance... done in 26.427566456 secs
│
◇  Accepting admin... done in 103.801456444 secs
│
◇  Updating token multiplier setter... done in 31.829787283 secs
│
│
■  Command failed to run: forge script deploy-scripts/DeployL2Contracts.sol --legacy --ffi --rpc-url=https://eth-holesky.g.alchemy.com/v2/gX4Bzzy0OfPTnC-SoNcdCAeXg_SUk3KB --broadcast --private-key=71abce8005cdc18fff97e1381c974497ccd24f0d85b5b3d82c4885f90519c73c ──╮
│                                                                                                                                                                                                                                                                       │
│    Status:                                                                                                                                                                                                                                                            │
│      exit status: 1                                                                                                                                                                                                                                                   │
│    Stdout:                                                                                                                                                                                                                                                            │
│      No files changed, compilation skipped                                                                                                                                                                                                                            │
│      Script ran successfully.                                                                                                                                                                                                                                         │
│                                                                                                                                                                                                                                                                       │
│      ## Setting up 1 EVM.                                                                                                                                                                                                                                             │
│                                                                                                                                                                                                                                                                       │
│      ==========================                                                                                                                                                                                                                                       │
│                                                                                                                                                                                                                                                                       │
│      Chain 17000                                                                                                                                                                                                                                                      │
│                                                                                                                                                                                                                                                                       │
│      Estimated gas price: 0.304858025 gwei                                                                                                                                                                                                                            │
│                                                                                                                                                                                                                                                                       │
│      Estimated total gas used for script: 4491042                                                                                                                                                                                                                     │
│                                                                                                                                                                                                                                                                       │
│      Estimated amount required: 0.00136913019431205 ETH                                                                                                                                                                                                               │
│                                                                                                                                                                                                                                                                       │
│      ==========================                                                                                                                                                                                                                                       │
│      ##                                                                                                                                                                                                                                                               │
│      Sending transactions [0 - 5].                                                                                                                                                                                                                                    │
│                                                                                                                                                                                                                                                                       │
│      Transactions saved to:                                                                                                                                                                                                                                           │
│      /home/xvalx/zk_chain/zksync-era/contracts/l1-contracts/broadcast/DeployL2Contracts.sol/17000/run-latest.json                                                                                                                                                     │
│                                                                                                                                                                                                                                                                       │
│      Sensitive values saved to:                                                                                                                                                                                                                                       │
│      /home/xvalx/zk_chain/zksync-era/contracts/l1-contracts/cache-forge/DeployL2Contracts.sol/17000/run-latest.json                                                                                                                                                   │
│                                                                                                                                                                                                                                                                       │
│                                                                                                                                                                                                                                                                       │
│                                                                                                                                                                                                                                                                       │
│    Stderr:                                                                                                                                                                                                                                                            │
│      Error:                                                                                                                                                                                                                                                           │
│      Failed to send transaction                                                                                                                                                                                                                                       │
│                                                                                                                                                                                                                                                                       │
│      Context:                                                                                                                                                                                                                                                         │
│      - server returned an error response: error code -32000: invalid: initcode too large                                                                                                                                                                              │
│                                                                                                                                                                                                                                                                       │
│                                                                                                                                                                                                                                                                       │
├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
│
■  Command failed to run: forge script deploy-scripts/DeployL2Contracts.sol --legacy --ffi --rpc-url=https://eth-holesky.g.alchemy.com/v2/gX4Bzzy0OfPTnC-SoNcdCAeXg_SUk3KB --broadcast --private-key=71abce8005cdc18fff97e1381c974497ccd24f0d85b5b3d82c4885f90519c73c
│  Error: 
│  Failed to send transaction
│  
│  Context:
│  - server returned an error response: error code -32000: invalid: initcode too large
│  
│  
▲    0: Command failed to run: forge script deploy-scripts/DeployL2Contracts.sol --legacy --ffi --rpc-url=https://eth-holesky.g.alchemy.com/v2/gX4Bzzy0OfPTnC-SoNcdCAeXg_SUk3KB --broadcast --private-key=71abce8005cdc18fff97e1381c974497ccd24f0d85b5b3d82c4885f90519c73c
│  
└  Failed to run command

@Teamvalid Teamvalid added the bug Something isn't working label Aug 25, 2024
@Teamvalid
Copy link
Author

Update.. This issue was solved using a holsky eth rpc with bigger limits and creating new docker containers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant