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

Document when InvalidTransaction errors are thrown #722

Merged

Conversation

alessandromazza98
Copy link
Contributor

Closes #594

I added some docs to the InvalidTransaction enum.

I just excluded 3 variants because their meaning are obvious:

  • NonceTooHigh
  • NonceTooLow
  • InvalidChainId

I also renamed the first variant: PriorityFeeGreaterThanMaxFee that previously was GasMaxFeeGreaterThanPriorityFee .
I think it's better named like this as that error arises when the priority_fee is actually greater than the max_fee and not the contrary.

Let me know WDYT!

@rakita
Copy link
Member

rakita commented Sep 20, 2023

Yeah this is correct it should be PriorityFeeGreaterThanMaxFee

@rakita rakita merged commit 1f31756 into bluealloy:main Sep 20, 2023
6 of 8 checks passed
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.

Document when InvalidTransaction errors are thrown
2 participants