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

fix(rpc/types): catch invalid values in CheckTxFee #2415

Closed

Conversation

odeke-em
Copy link
Contributor

This change catches invalid values in CheckTxFee
and returns an error for:

  • nil gasPrice
  • negative gasPrice

which improves the reliability of the system.

Fixes #2413
Fixes #2414

This change catches invalid values in CheckTxFee
and returns an error for:
* nil gasPrice
* negative gasPrice

which improves the reliability of the system.

Fixes evmos#2413
Fixes evmos#2414
@odeke-em odeke-em requested a review from a team as a code owner March 14, 2024 01:05
@odeke-em odeke-em requested review from facs95 and 0xstepit and removed request for a team March 14, 2024 01:05
@CLAassistant
Copy link

CLAassistant commented Mar 14, 2024

CLA assistant check
All committers have signed the CLA.

@odeke-em
Copy link
Contributor Author

I believe that this change is warranted to fix a violation of the Ethereum specification that warrants that every transaction must have a non-zero gas price per https://ethereum.github.io/yellowpaper/paper.pdf image

@0xstepit
Copy link
Contributor

I believe that this change is warranted to fix a violation of the Ethereum specification that warrants that every transaction must have a non-zero gas price per https://ethereum.github.io/yellowpaper/paper.pdf image

Hey @odeke-em, Thank you for your contribution to our codebase! Your effort is much appreciated.

Regarding your pull request, I recommend taking a look at the ante handler, as it contains most of the checks related to gas. Additionally, I want to inform you that we're currently discussing internal plans to refactor and enhance RPC performance. As a result, I'll be closing this PR to avoid further investment of your time in addressing CI issues.

Once again, thank you for your contribution. 🙏

@0xstepit 0xstepit closed this Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants