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

Fix potential nil pointer dereference panic in superchain overrides #174

Merged

Conversation

mdehoog
Copy link
Contributor

@mdehoog mdehoog commented Oct 27, 2023

Description

Running geth with --rollup.superchain-upgrades but no --op-network will panic in the superchain config overrides code, because genesis is nil. This PR fixes that codepath.

Tests

No tests added, hotfix for canyon hardfork today.

Additional context

We are seeing this on our sepolia devnet, which is not yet part of the superchain config.

Copy link
Collaborator

@protolambda protolambda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch

@protolambda protolambda merged commit 237170b into ethereum-optimism:optimism Oct 27, 2023
3 of 4 checks passed
@mdehoog mdehoog deleted the michael/fix-superchain-panic branch October 27, 2023 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants