Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
contracts-bedrock: hacky patch for CI failures (ethereum-optimism#9081)
* contracts-bedrock: hacky patch for CI failures CI is consistently failing due to the L2 genesis generation happening out of process using ffi. Ideally the genesis state could be ran a single time once outside of the process ahead of time but the problem with this approach is that the deployer nonce is not correct and the L1 contract addresses in practice end up not matching the addresses that are injected into the L2 genesis state. There are a few solutions to this problem, one is deploying the proxies with create2 and another is to ensure that the deployer does not deploy additional contracts in the test case setup that are not deployed in the L1 genesis gen setup so that we are guaranteed that the contracts have the same addresses. This is a hacky patch to attempt to fix the issue where it will wait if the allocs file doesn't exist. Something with the process running in parallel causes the file to not exist. The downside of this fix is that CI may hang silently forever if the file is lost for some reason. Another solution would be to return the JSON to solidity and then write it to a temp file. This isn't ideal but could work in the short term. We are working on a rewrite of the L2 genesis generation in solidity that will fix this issue along with many other devex issues in the monorepo. * ctb: update gas snapshot
- Loading branch information