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(ethers-core/block): add gas_target and next_block_base_fee fns a… #1047

Merged
merged 3 commits into from Mar 17, 2022

Conversation

meetmangukiya
Copy link
Contributor

…ccording to EIP-1559

Motivation

Target gas usage and next block's base fee can be useful helper methods.

Solution

Implemented the same referring the EIP.

PR Checklist

  • Added Tests
  • Added Documentation
  • Updated the changelog

@meetmangukiya meetmangukiya force-pushed the block-fee-methods branch 3 times, most recently from f3041d5 to f6674eb Compare March 17, 2022 08:12
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.

smol nit

ethers-core/src/types/block.rs Outdated Show resolved Hide resolved
ethers-core/src/types/block.rs Outdated Show resolved Hide resolved
@gakonst gakonst merged commit 42ead62 into gakonst:master Mar 17, 2022
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.

None yet

3 participants