Skip to content

Handle missing output field in Ethereum trace results#6495

Open
JunaidCD wants to merge 1 commit intographprotocol:masterfrom
JunaidCD:fix-missing-trace-output-6489
Open

Handle missing output field in Ethereum trace results#6495
JunaidCD wants to merge 1 commit intographprotocol:masterfrom
JunaidCD:fix-missing-trace-output-6489

Conversation

@JunaidCD
Copy link
Copy Markdown

@JunaidCD JunaidCD commented Apr 12, 2026

Problem

Graph Node fails to deserialize traces when the result.output field is missing.

This occurs for certain trace types (e.g. suicide) where the RPC response legitimately omits the output field, leading to errors like:

data did not match any variant of untagged enum TraceOutput

Cause

After switching to alloy, the output field is treated as required during deserialization, while some valid traces do not include it.

Solution

Before deserialization, a default value ("0x") is inserted when the output field is missing.

Scope

  • Localized change in ethereum_adapter.rs
  • No changes to external dependencies

Impact

Prevents indexing failures for chains that return traces without output, restoring compatibility with existing RPC behavior.

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