You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Originally posted by t-vila June 12, 2023
Hey all,
As far as I remember maxFeePerGas was optional in 1.x and calculated from the baseFee - in 4.x I get MissingGasError if I don't specify it. It looks like it's expected
Thank you for submitting this! 4.x is slightly different on validating transactions and the error message isn't clear, when we validate a transaction this is the conditional
Since you are using maxPriorityFeePerGas and specified a type 2 transaction its expected that you define maxFeePerGas as well.
If you wanted to submit a legacy transaction you would need to specify gas && gasPrice
I'll create a PR to make the error message more clear. thank you
For more clarity as well, what code/methods were u running
Activity
luu-alex commentedon Jun 23, 2023
Thank you for submitting this! 4.x is slightly different on validating transactions and the error message isn't clear, when we validate a transaction this is the conditional
Since you are using
maxPriorityFeePerGasand specified a type 2 transaction its expected that you definemaxFeePerGasas well.If you wanted to submit a legacy transaction you would need to specify
gas && gasPriceI'll create a PR to make the error message more clear. thank you
For more clarity as well, what code/methods were u running