0xPolygonHermez/zkevm-contracts

Outdated geth image caused invalid OPCODE PUSH0 error

bap2pecs opened this issue · 2 comments

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

Okay thanks.

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