-
Notifications
You must be signed in to change notification settings - Fork 644
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 error message for LackOfFundForMaxFee #858
Conversation
crates/primitives/src/result.rs
Outdated
@@ -180,7 +180,7 @@ pub enum InvalidTransaction { | |||
RejectCallerWithCode, | |||
/// Transaction account does not have enough amount of ether to cover transferred value and gas_limit*gas_price. | |||
LackOfFundForMaxFee { | |||
fee: u64, | |||
fee: U256, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you make them as Box<U256>
it will reduce the size of the type, and balance too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, one nit if you are up to change it
After changing the field to the Box i sow that optimism downcasted fee to the u64 so this PR even fixes that |
Will ignore fmt error, in local or CL logs it is not showing that anything is wrong |
Instead of returning the fee for a transaction, the LackOfFundForMaxFee error currently returns gas_limit. This PR fixes that.