-
Notifications
You must be signed in to change notification settings - Fork 96
fix: include gas parameters in mined transaction webhooks #907
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
base: main
Are you sure you want to change the base?
Conversation
Previously gasLimit and gasPrice fields were null in mined transaction webhooks because the resolver functions only checked for "sent" status. Since MinedTransaction inherits gas fields from SentTransaction, these values should be available for mined transactions as well. Updates the resolver functions to include "mined" status: - resolveGas() - returns transaction.gas for sent/mined transactions - resolveGasPrice() - returns transaction.gasPrice for sent/mined transactions - resolveMaxFeePerGas() - returns transaction.maxFeePerGas for sent/mined transactions - resolveMaxPriorityFeePerGas() - returns transaction.maxPriorityFeePerGas for sent/mined transactions 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
WalkthroughThe conditional logic in four helper functions— Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~7 minutes Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
🔇 Additional comments (4)
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Previously gasLimit and gasPrice fields were null in mined transaction webhooks because the resolver functions only checked for "sent" status. Since MinedTransaction inherits gas fields from SentTransaction, these values should be available for mined transactions as well.
Updates the resolver functions to include "mined" status:
🤖 Generated with Claude Code
Changes
How this PR will be tested
Output
(Example: Screenshot/GIF for UI changes, cURL output for API changes)
PR-Codex overview
This PR updates the logic in several functions to consider an additional transaction status,
"mined"
, alongside"sent"
when resolving gas-related values.Detailed summary
resolveGas
to return gas iftransaction.status
is"sent"
or"mined"
.resolveGasPrice
to return gas price for"sent"
or"mined"
status.resolveMaxFeePerGas
to check for"sent"
or"mined"
status when resolving max fee.resolveMaxPriorityFeePerGas
to include"mined"
status in its condition.