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

@andrewshab3
Copy link
Author

@mattsse @yongkangc sorry, can you check please?

Copy link
Member

@yongkangc yongkangc left a comment

Choose a reason for hiding this comment

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

I don't think this is necessary - Since we are not reducing code duplication

@andrewshab3
Copy link
Author

I don't think this is necessary - Since we are not reducing code duplication

This makes the code more understandable and consistent.

But final decision for you, thanks for your reply

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.

I like this

@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker Oct 22, 2025
@mattsse mattsse added the C-debt A clean up/refactor of existing code label Oct 22, 2025
@mattsse mattsse enabled auto-merge October 22, 2025 21:01
@mattsse
Copy link
Collaborator

mattsse commented Oct 22, 2025

tho needs fmt, please avoid open prs from main because I cant make edits @andrewshab3

@andrewshab3
Copy link
Author

andrewshab3 commented Oct 23, 2025

tho needs fmt, please avoid open prs from main because I cant make edits @andrewshab3

oh sorry, should i reopen my PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-debt A clean up/refactor of existing code

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

3 participants