Skip to content

Conversation

@joshklop
Copy link
Contributor

Are we publishing the docker image yet? make forkdiff doesn't work locally anymore.

@joshklop joshklop requested a review from sebastianst October 28, 2025 17:36
@joshklop joshklop requested a review from a team as a code owner October 28, 2025 17:36
Comment on lines 1739 to 1743
if receipt.DAFootprintGasScalar != nil {
fields["daFootprintGasScalar"] = hexutil.Uint64(*receipt.DAFootprintGasScalar)
fields["daFootprintGasScalar"] = hexutil.Uint64(*receipt.OperatorFeeScalar)
// Jovian repurposes blobGasUsed for DA footprint gas used
fields["blobGasUsed"] = hexutil.Uint64(receipt.BlobGasUsed)
}
Copy link

Choose a reason for hiding this comment

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

Medium Severity severity

JSON-RPC Panic on daFootprintGasScalar Field Dereference

In internal/ethapi/api.go, the JSON-RPC response for Optimism’s Jovian fields dereferences *receipt.OperatorFeeScalar instead of *receipt.DAFootprintGasScalar, causing a nil pointer panic when OperatorFeeScalar is nil but DAFootprintGasScalar is set.

Change the dereference to use receipt.DAFootprintGasScalar. Replace *receipt.OperatorFeeScalar with *receipt.DAFootprintGasScalar to avoid nil pointer dereference.


Don't like this finding? Reply "dismiss" and it won't appear again in future scans.

Copy link
Member

@sebastianst sebastianst left a comment

Choose a reason for hiding this comment

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

Wouldn't we need to create a docker build from our Repo? We don't have that set up yet. I think the reference here protolambda/forkdiff:latest is to the Docker registry at https://hub.docker.com/r/protolambda/forkdiff

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