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

Type of Web3Eth.calculateFeeData Param baseFeePerGasFactor Should Support Decimals #7321

Open
danforbes opened this issue Oct 11, 2024 · 2 comments
Labels
4.x 4.0 related Bug Addressing a bug

Comments

@danforbes
Copy link
Contributor

When specifying the baseFeePerGasFactor for the Web3Eth.calculcateFeeData method, users may wish to specify a percentage, such as %112.5. To support this, the type of this parameter should be changed from bigint to a type that supports decimal values.

@mconnelly8 mconnelly8 added Bug Addressing a bug 4.x 4.0 related labels Oct 14, 2024
@TemirlanBasitov
Copy link

TemirlanBasitov commented Oct 16, 2024

you can use baseFeePerGasFactor: number = 2, instead of bigint(2)

@TemirlanBasitov
Copy link

#7332

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4.x 4.0 related Bug Addressing a bug
Projects
None yet
Development

No branches or pull requests

3 participants