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

Reorg the transaction module #54

Merged
merged 2 commits into from
Feb 18, 2024

Conversation

koushiro
Copy link
Collaborator

  • split the transaction module to legacy/eip2930/eip1559 modules
  • add to_message method for LegacyTransaction/EIP2930Transaction/EIP1559Transaction
  • adjust some imports

@koushiro
Copy link
Collaborator Author

@sorpaas PTAL

 - split the transaction module to legacy/eip2930/eip1559 modules
 - add to_message method for LegacyTransaction/EIP2930Transaction/EIP1559Transaction
 - adjust some imports
src/block.rs Outdated
util::ordered_trie_root, EnvelopedDecodable, EnvelopedEncodable, Header, PartialHeader,
TransactionAny, TransactionV0, TransactionV1, TransactionV2,
};
#[cfg(not(feature = "std"))]
Copy link
Member

Choose a reason for hiding this comment

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

This is unnecessary. alloc is also available in no_std.

So I would prefer we just always do use alloc::vec::Vec regardless of std or no_std.

Same for all below.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated

@sorpaas sorpaas merged commit 24f8e1e into rust-ethereum:master Feb 18, 2024
5 checks passed
@koushiro koushiro deleted the reorg-transaction branch February 18, 2024 06:35
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