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

Problem: Ethers does not manually set gas limits in EIP1559 transactions (backport peggy#432) #74

Merged
merged 1 commit into from
Jul 14, 2022

Conversation

thomas-nguy
Copy link
Collaborator

Solution : add a gas limit multiplier

Backport PeggyJV#432

@thomas-nguy thomas-nguy changed the title Problem: Ether does not manually set gas limits in EIP1559 transactions (backport peggy#432) Problem: Ethers does not manually set gas limits in EIP1559 transactions (backport peggy#432) Jul 13, 2022
@thomas-nguy
Copy link
Collaborator Author

thanks for the review @devashishdxt

@tomtau could we give devashish write access?

@tomtau
Copy link

tomtau commented Jul 13, 2022

@devashishdxt should have a write access now

Comment on lines 207 to +208
let gas_price_as_f32 = downcast_to_f32(cost.gas_price).unwrap(); // if the total cost isn't greater, this isn't
let gas_as_f32 = downcast_to_f32(cost.gas).unwrap(); // same as above re: total cost
Copy link

Choose a reason for hiding this comment

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

some of those fixed point number types in ethers have multiplication and other operations defined, so perhaps there's no need for this casting to floating points (which could make things behave strangely)

@thomas-nguy thomas-nguy merged commit 25acdf7 into v2.0.0-cronos Jul 14, 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.

4 participants