Skip to content

refactor: Use typed errors for EthTrace::error instead of Option<String> #6784

@akaladarshi

Description

@akaladarshi

Summary

The EthTrace struct in src/rpc/methods/eth/trace/types.rs currently stores its error
field as Option<String>:

pub struct EthTrace {
    // ...
    pub error: Option<String>,
}

This leads to unnecessary heap allocations, string comparisons, and lacks strong typing.

Completion Criteria

Additional Links & Resources

Original PR: #6751
Comment Thread: #6751 (comment)

Metadata

Metadata

Assignees

Labels

Type: TaskDiscrete task to implement

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions