-
Notifications
You must be signed in to change notification settings - Fork 5.2k
fix: For batch transactions sum total of gas needed for all transactions in the batched should be check to show insufficient funds error #31555
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
Conversation
…n the batched should be check to show insufficient funds error
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
✨ Files requiring CODEOWNER review ✨✅ @MetaMask/confirmations
|
Builds ready [c4bdea2]
UI Startup Metrics (1218 ± 62 ms)
Bundle size diffs [🚨 Warning! Bundle size has increased!]
|
amount: totalValue, | ||
gasTotal: multiplyHexes( | ||
hexMaximumTransactionFee as Hex, | ||
decimalToHex(batchTransactionCount + 1) as Hex, |
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.
As these are EIP-7702 batches, there is only one transaction so one gas fee, so no need to multiply.
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.
oh I see, let me fix this
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.
PR is updated
Builds ready [3f667b1]
UI Startup Metrics (1261 ± 65 ms)
Bundle size diffs [🚀 Bundle size reduced!]
|
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.
2+
Description
For batch transactions sum total of gas needed for all transactions in the batched should be check to show insufficient funds error
Related issues
Fixes: https://github.com/MetaMask/MetaMask-planning/issues/4571
Manual testing steps
Screenshots/Recordings
TODO
Pre-merge author checklist
Pre-merge reviewer checklist