optimism: Cannot deploy in ops tool L2 chain

When starting a local L2 chain and attempting to deploy a contract in it, I’m getting the error:

Error: Returned Error: invalid transaction: exceeds block gas limit

To reproduce, start the ops tool in the latest master commit, and run the following commands in the synthetix project folder (latest commit in develop): npx hardhat test:integration:l2 --compile --deploy

This is part of our integration tests that run in our CI. The error can be seen in the CI at a commit in our develop branch that passed before: https://app.circleci.com/pipelines/github/Synthetixio/synthetix/7404/workflows/0ab30bf1-e14c-4f4a-a273-d970002eb3ba/jobs/69611

Using the previous commit in your master branch 86708bb5758cd2b647b3ca2be698beb5aa3af81f does not produce the error. We don’t know if this is the last commit that does not produce the error. Our CI is currently pinned to that commit.

Update: The latest commit that seems to not produce the error is 8082d16c306aab1e53a019ecbce7038d2f1415ca. However it seems to be producing timeout errors in L1+L2 tests: https://app.circleci.com/pipelines/github/Synthetixio/synthetix/7425/workflows/6745e40d-91b2-48ff-8352-a78e6ca24d0b/jobs/69894 so 86708bb5758cd2b647b3ca2be698beb5aa3af81f might be more trustworthy.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 15 (15 by maintainers)

Most upvoted comments

Actually I have a lot of other priorities to tackle today, will try to get to this tomorrow or thursday but can’t promise anything.