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

feat: Migrate to TrieAccount of alloy-trie #1750

Merged
merged 2 commits into from
Dec 4, 2024

Conversation

moricho
Copy link
Contributor

@moricho moricho commented Dec 4, 2024

Motivation

Account has been migrated to TrieAccount of alloy-trie in alloy-rs/trie#65

Solution

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@@ -9,8 +9,7 @@

extern crate alloc;

mod account;
pub use account::Account;
pub use alloy_trie::TrieAccount as Account;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Re-exported TrieAccount as Account in alloy-consensus for the compatibility

Copy link
Member

Choose a reason for hiding this comment

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

can we also re-export TrieAccount and mark this rename as deprecated?

@moricho moricho changed the title feat: Migrate to TrieAccount from alloy-trie feat: Migrate to TrieAccount of alloy-trie Dec 4, 2024
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.

awesome, one nit

then we also want the conversion for genesis account seperately

@@ -9,8 +9,7 @@

extern crate alloc;

mod account;
pub use account::Account;
pub use alloy_trie::TrieAccount as Account;
Copy link
Member

Choose a reason for hiding this comment

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

can we also re-export TrieAccount and mark this rename as deprecated?

@mattsse mattsse merged commit 221a1b9 into alloy-rs:main Dec 4, 2024
26 checks passed
@moricho moricho deleted the migrate-trie-account branch December 5, 2024 10:33
@moricho
Copy link
Contributor Author

moricho commented Dec 5, 2024

@mattsse I just saw your comment. Thank you for handling the genesis account conversion!

@mattsse
Copy link
Member

mattsse commented Dec 5, 2024

thank you!

I quickly pushed this over the line because we needed a new release on reth

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