Skip to content

Conversation

@syntrust
Copy link
Collaborator

Fix CircleCI error in op-program-compat

panic: runtime error: invalid memory address or nil pointer dereference

Can be verified locally on the optimism repo:

cd op-program
make verify-compat

@blockchaindevsh
Copy link
Collaborator

Looks like upstream doesn't have such changes, why is it not an issue for them?

@syntrust
Copy link
Collaborator Author

Looks like upstream doesn't have such changes, why is it not an issue for them?

Because the if config.IsOptimism() { part is commented by us


isOsaka := config.IsOsaka(config.LondonBlock, headTimestamp)
bcfg := latestBlobConfig(config, headTimestamp)
if bcfg == nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we need to distinguish whether L2Blob is enabled. If enabled, bcfg must be non-nil.

blobConfig := latestBlobConfig(config, header.Time)
if blobConfig == nil {
panic("calculating blob fee on unsupported fork")
return minBlobGasPrice
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we need to distinguish whether L2Blob is enabled. If enabled, we should panic here.

Copy link
Collaborator

@blockchaindevsh blockchaindevsh Oct 30, 2025

Choose a reason for hiding this comment

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

I think it's worth checking here that L2 blob is not enabled. We don't necessarily need to modify latestBlobConfig above. Just ensure that these hardcoded values only works for compatibility with upstream, but we don't actually use these hardcoded values.

@syntrust syntrust merged commit 4b2736d into op-es Oct 31, 2025
1 check passed
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.

4 participants