Skip to content

Conversation

@yashnevatia
Copy link
Contributor

@yashnevatia yashnevatia commented Jan 9, 2026

Copilot AI review requested due to automatic review settings January 9, 2026 15:56
@yashnevatia yashnevatia requested review from a team as code owners January 9, 2026 15:56
@github-actions
Copy link
Contributor

github-actions bot commented Jan 9, 2026

👋 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!

Copy link
Contributor

Copilot AI left a 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 NewTxAttemptWithType to use MaxGasPrice from the transaction request when available
  • Updated chainlink-framework/chains dependency 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.

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
Copy link

Copilot AI Jan 9, 2026

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'.

Suggested change
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

Copilot uses AI. Check for mistakes.
pavel-raykov
pavel-raykov previously approved these changes Jan 9, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 14, 2026

✅ API Diff Results - No breaking changes


📄 View full apidiff report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants