core
core copied to clipboard
Fix: When querying bundler, use existing gas prices if available
Explanation
This PR fixes issue where the gas prices being sent to the bundler is always set as 0. maxFeePerGas and maxPriorityFeePerGas from the transaction params will be used by default with the gasPrice and VALUE_ONE as the fallback.
References
- Fixes #257
Changelog
@metamask/user-operations-controller
- CHANGED: Use gas prices from transactions params when sending a query to a bundler.
Checklist
- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
- [x] I've highlighted breaking changes using the "BREAKING" category above as appropriate