Skip to content
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

fix(consensus): serde aliases to avoid breaking changes #1654

Merged
merged 1 commit into from
Nov 18, 2024

Conversation

yash-atreya
Copy link
Member

Motivation

Recent changes in consensus types brought breaking changes to serialization/deserialization usecases.

See https://github.com/foundry-rs/foundry/pull/9280/files/999eea97817168b67318f15b3e58f33d378e8c96#r1844004048 and foundry-rs/foundry#9324.

Solution

Add aliases to avoid breaking changes

  • Alias sha3Uncles with ommersHash and miner with beneficiary in Header.
  • Alias gas with gasLimit in tx types.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Copy link
Member

@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.

seems okay, pending @klkvr

@yash-atreya yash-atreya merged commit 48c4391 into main Nov 18, 2024
26 checks passed
@yash-atreya yash-atreya deleted the yash/consensus-aliases branch November 18, 2024 14:58
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.

2 participants