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 with_base_fee for TransactionInfo #721

Merged
merged 2 commits into from
May 10, 2024

Conversation

tcoratger
Copy link
Contributor

For situation where TransactionInfo is built from Transaction, base_fee field is set to None. As a result, it is interesting to have a with_base_fee method implemented in order to consume the created TransactionInfo instance and populate its base_fee field.

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.

supportive, while we're at it, can we also add excess_blob_gas: Option<u64> here. this is needed to calc the blob gas price

pedantic clippy

@tcoratger
Copy link
Contributor Author

supportive, while we're at it, can we also add excess_blob_gas: Option<u64> here. this is needed to calc the blob gas price

pedantic clippy

Fixed :)

@prestwich prestwich merged commit 890acea into alloy-rs:main May 10, 2024
24 checks passed
ben186 pushed a commit to ben186/alloy that referenced this pull request Jul 27, 2024
* add with_base_fee for TransactionInfo

* fix clippy
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.

3 participants