Skip to content

Fix nil pointer in FakeEVMChain log conversion#21253

Draft
wentzeld wants to merge 1 commit intodevelopfrom
fix/fake-evm-filter-logs-topics
Draft

Fix nil pointer in FakeEVMChain log conversion#21253
wentzeld wants to merge 1 commit intodevelopfrom
fix/fake-evm-filter-logs-topics

Conversation

@wentzeld
Copy link
Contributor

Summary

  • FilterLogs: Topics: logsPb[i].Topics read from the uninitialized destination (nil) instead of converting log.Topics → panic on any
    filterLogs call that returns results
  • GetTransactionReceipt: Same bug in receipt log conversion, also missing Data field

Test plan

  • Built cre-cli with go mod replace pointing to this fix
  • Ran cre workflow simulate with filterLogs on historical Sepolia block 10295153 — previously panicked, now returns 1 decoded log
    successfully

…tionReceipt

  FilterLogs was assigning Topics from the uninitialized destination
  (logsPb[i].Topics) instead of converting the source log.Topics,
  causing a nil pointer panic. GetTransactionReceipt had the same bug
  and was also missing Data in its log conversion.
@github-actions
Copy link
Contributor

I see you updated files related to core. Please run pnpm changeset in the root directory to add a changeset as well as in the text include at least one of the following tags:

  • #added For any new functionality added.
  • #breaking_change For any functionality that requires manual action for the node to boot.
  • #bugfix For bug fixes.
  • #changed For any change to the existing functionality.
  • #db_update For any feature that introduces updates to database schema.
  • #deprecation_notice For any upcoming deprecation functionality.
  • #internal For changesets that need to be excluded from the final changelog.
  • #nops For any feature that is NOP facing and needs to be in the official Release Notes for the release.
  • #removed For any functionality/config that is removed.
  • #updated For any functionality that is updated.
  • #wip For any change that is not ready yet and external communication about it should be held off till it is feature complete.

@cl-sonarqube-production
Copy link

@trunk-io
Copy link

trunk-io bot commented Feb 20, 2026

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

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.

1 participant

Comments