0xPolygonHermez / zkevm-contracts

Polygon zkEVM Smart Contracts
Other
273 stars 314 forks source link

Outdated geth image caused invalid OPCODE PUSH0 error #218

Open bap2pecs opened 7 months ago

bap2pecs commented 7 months ago

Root Cause

when running docker/scripts/v2/deploy-docker.sh to deploy the contracts to create the geth-mock-l1 image

it failed with invalid OPCODE PUSH0 error

root cause is due to PUSH0 was added recently (https://medium.com/coinmonks/push0-opcode-a-significant-update-in-the-latest-solidity-version-0-8-20-ea028668028a)

but docker/docker-compose.yml use ethereum/client-go:v1.12.0 which is a old image

Solution

changing it to ethereum/client-go:latest fixed the issue for us

Sharonbc01 commented 7 months ago

Okay thanks.

epociask commented 6 months ago

It'd also be nice if we could use a geth image that supports multiple architecture targets (i.e x86, arm) to ensure better future cross compatibility and initial support for ARM based processors