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

Make OptimismConfig.EIP1559DenominatorCanyon optional #345

Merged
merged 8 commits into from
Jul 9, 2024

Conversation

bitwiseguy
Copy link
Contributor

Prior to this PR the OptimismConfig.EIP1559DenominatorCanyon field was required, so when Unmarshaled from a json file in the superchain-registry, it was populated with the default 0 value if it was missing.

This PR makes that field optional, so that it is initialized as nil, and only populated if it is present in the json file. This allows the new superchain-registry add-chain check-genesis command to be backwards compatible with chains that did not have canyon activated at genesis.

Additional context

@bitwiseguy bitwiseguy requested a review from a team as a code owner July 8, 2024 15:31
@bitwiseguy bitwiseguy requested review from tynes and geoknee and removed request for tynes July 8, 2024 15:31
core/genesis.go Outdated Show resolved Hide resolved
core/genesis.go Outdated Show resolved Hide resolved
params/superchain.go Outdated Show resolved Hide resolved
params/config.go Show resolved Hide resolved
@sebastianst sebastianst merged commit c6ea6fa into optimism Jul 9, 2024
10 checks passed
@sebastianst sebastianst deleted the ss/eip1559DenominatorCanyon-optional branch July 9, 2024 14:30
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.

3 participants