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

Add trait method Transaction::effective_gas_price #1640

Merged
merged 4 commits into from
Nov 12, 2024

Conversation

emhane
Copy link
Member

@emhane emhane commented Nov 12, 2024

Motivation

Port utility method from reth https://github.com/paradigmxyz/reth/blob/3a337cd7d4ad8c14569d20141fdcc2b1c54dbdf3/crates/primitives/src/transaction/mod.rs#L329-L342

Solution

Adds trait method Transaction::effective_gas_price

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@emhane emhane added the enhancement New feature or request label Nov 12, 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.

nits

crates/network/src/any/unknowns.rs Outdated Show resolved Hide resolved
crates/consensus/src/transaction/eip1559.rs Outdated Show resolved Hide resolved
crates/consensus/src/transaction/eip4844.rs Outdated Show resolved Hide resolved
@emhane emhane requested a review from mattsse November 12, 2024 16:18
@mattsse mattsse merged commit 35ab774 into main Nov 12, 2024
26 checks passed
@mattsse mattsse deleted the emhane/effective-gas-price branch November 12, 2024 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants