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

refactor: clean up posthandler logic and tests #39

Merged
merged 25 commits into from
Dec 5, 2023
Merged

Conversation

aljo242
Copy link
Collaborator

@aljo242 aljo242 commented Dec 1, 2023

No description provided.

feeCoins = feeTx.GetFee()

// Ensure that the provided fees meet the minimum
minGasPrices := feesDec
minGasPrices := minFeesDecCoins
Copy link
Contributor

@davidterpay davidterpay Dec 5, 2023

Choose a reason for hiding this comment

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

Does there need to be a check on whether the provided gas limit > consumed gas limit or do you think it's fine for the gas meter to handle that? On it's own you can technically have a greater gas consumed than gas limit rn.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The gas meter will automatically do that in the background if the tx ever exceeds the gas limit

@aljo242 aljo242 merged commit bf2b135 into main Dec 5, 2023
@aljo242 aljo242 deleted the refactor/clean-logic branch December 5, 2023 16:41
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.

2 participants