Skip to content

Conversation

@andrewshab3
Copy link

Overview

Refactors duplicated gas calculation logic in the re-execute command by extracting it into a reusable helper closure.

Why?

  • Eliminates code duplication
  • Improves maintainability - single source for gas calculation

Refactor receipt retrieval to handle missing receipts and add a helper function to calculate gas used per transaction.
@andrewshab3
Copy link
Author

andrewshab3 commented Nov 6, 2025

@mattsse sorry, reopened it with test branch

@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker Nov 6, 2025
@andrewshab3 andrewshab3 requested a review from mattsse November 7, 2025 08:13
@andrewshab3
Copy link
Author

@yongkangc @mattsse can you check please?

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

due to generics this isnt trivial, and we can keep this as is

@mattsse mattsse closed this Nov 18, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in Reth Tracker Nov 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants