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

chore: use alloy traits for PoolTransaction #14228

Merged
merged 2 commits into from
Feb 5, 2025

Conversation

klkvr
Copy link
Collaborator

@klkvr klkvr commented Feb 5, 2025

Most of the PoolTransaction methods are same as alloy_consensus::Transaction, so we can unify those

Copy link
Collaborator

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

very nice

cc @kien-rise for vis

Comment on lines -1152 to -1153
/// Returns the number of blobs this transaction has.
fn blob_count(&self) -> usize;
Copy link
Collaborator

Choose a reason for hiding this comment

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

fyi, I just added this to alloy

alloy-rs/alloy#2005

@@ -865,7 +865,7 @@ pub fn ensure_intrinsic_gas<T: EthPoolTransaction>(
transaction.input(),
transaction.is_create(),
transaction.access_list().map(|list| list.0.as_slice()).unwrap_or(&[]),
transaction.authorization_count() as u64,
transaction.authorization_list().map(|l| l.len()).unwrap_or(0) as u64,
Copy link
Collaborator

Choose a reason for hiding this comment

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

@mattsse mattsse added the A-tx-pool Related to the transaction mempool label Feb 5, 2025
@klkvr klkvr added this pull request to the merge queue Feb 5, 2025
Merged via the queue into main with commit a63f92e Feb 5, 2025
44 checks passed
@klkvr klkvr deleted the klkvr/use-alloy-traits-for-pool-tx branch February 5, 2025 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tx-pool Related to the transaction mempool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants