Skip to content

refactor: removing redundant codes in htrutils.go #15453

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

syjn99
Copy link
Contributor

@syjn99 syjn99 commented Jun 28, 2025

What type of PR is this?

Refactor

What does this PR do? Why is it needed?

While I'm exploring encoding package, I found that encoding/ssz/htrutils.go had some redundant codes though we're using auto-generated SSZ codes by fastssz. This PR refactors by removing those codes.

Other notes for review

b85509d adds a type alias to satisfy Hashable in interface for each transaction as bytes. Feedbacks are welcomed as the type alias often causes a bad readability.

Acknowledgements

@@ -219,7 +219,7 @@ func TestWithdrawalRoot(t *testing.T) {
}{
{
name: "nil",
input: &enginev1.Withdrawal{},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was actually not nil as the pointer is passed.

@syjn99
Copy link
Contributor Author

syjn99 commented Jun 28, 2025

After finding issue #15398, it looks like major changes to SSZ usage are upcoming. I'm wondering if my work will still be meaningful.

@syjn99 syjn99 force-pushed the refactor/htrutil branch from c459170 to e00b5c8 Compare July 2, 2025 13:05
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