-
Notifications
You must be signed in to change notification settings - Fork 15
Using MaxGasPrice from txRequest #323
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: develop
Are you sure you want to change the base?
Conversation
|
👋 yashnevatia, thanks for creating this pull request! To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team. Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks! |
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.
Pull request overview
This PR updates the transaction attempt builder to prioritize MaxGasPrice from transaction requests over the key-specific configuration, and updates a dependency version.
Changes:
- Modified
NewTxAttemptWithTypeto useMaxGasPricefrom the transaction request when available - Updated
chainlink-framework/chainsdependency to a newer version
Reviewed changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| pkg/txmgr/attempts.go | Added logic to override keySpecificMaxGasPriceWei with MaxGasPrice from transaction request when present |
| go.mod | Updated chainlink-framework/chains dependency version |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
pkg/txmgr/attempts.go
Outdated
| func (c *evmTxAttemptBuilder) NewTxAttemptWithType(ctx context.Context, etx Tx, lggr logger.Logger, txType int, opts ...fees.Opt) (attempt TxAttempt, fee gas.EvmFee, feeLimit uint64, retryable bool, err error) { | ||
| keySpecificMaxGasPriceWei := c.feeConfig.PriceMaxKey(etx.FromAddress) | ||
| if etx.MaxGasPrice != nil { | ||
| keySpecificMaxGasPriceWei = assets.NewWei(etx.MaxGasPrice) // give prefence to max gas price from tx request |
Copilot
AI
Jan 9, 2026
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.
Corrected spelling of 'prefence' to 'preference'.
| keySpecificMaxGasPriceWei = assets.NewWei(etx.MaxGasPrice) // give prefence to max gas price from tx request | |
| keySpecificMaxGasPriceWei = assets.NewWei(etx.MaxGasPrice) // give preference to max gas price from tx request |
✅ API Diff Results - No breaking changes |
https://smartcontract-it.atlassian.net/browse/PLEX-1522
Depends on smartcontractkit/chainlink-framework#80