Skip to content

Add new ExpectedWithdrawals dataclass#4812

Merged
jtraglia merged 2 commits intoethereum:masterfrom
jtraglia:expected-withdrawals-dataclass
Jan 9, 2026
Merged

Add new ExpectedWithdrawals dataclass#4812
jtraglia merged 2 commits intoethereum:masterfrom
jtraglia:expected-withdrawals-dataclass

Conversation

@jtraglia
Copy link
Copy Markdown
Member

@jtraglia jtraglia commented Jan 6, 2026

The return type from get_expected_withdrawals has become quite complex. @potuz suggested we make a named type for this instead (here). This PR introduces a new ExpectedWithdrawals type (dataclass) for this.

Copy link
Copy Markdown
Contributor

@potuz potuz left a comment

Choose a reason for hiding this comment

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

LGTM, don't know why the Electra changes.

)
```

#### Execution payload
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why these removals?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The only reason this function was modified was to handle the additional return values from get_expected_withdrawals. With this PR, it is no longer necessary to do this.

image

Copy link
Copy Markdown
Member

@jihoonsong jihoonsong left a comment

Choose a reason for hiding this comment

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

Just nits, looks good!

Co-authored-by: JihoonSong <jihoonsong@users.noreply.github.com>
@jtraglia
Copy link
Copy Markdown
Member Author

jtraglia commented Jan 8, 2026

Ah good eye @jihoonsong. Thanks!

@jtraglia jtraglia merged commit a19c7af into ethereum:master Jan 9, 2026
16 checks passed
@jtraglia jtraglia deleted the expected-withdrawals-dataclass branch January 9, 2026 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants