Skip to content

update gas estimation and tx fee - #1717

Merged
mergify[bot] merged 6 commits into
devfrom
txfields
Oct 22, 2026
Merged

mergify[bot] merged 6 commits into
devfrom
txfields

Conversation

@iosh

@iosh iosh commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

This change is Reviewable

@mosshqq

mosshqq commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T06:41:54.032069Z eb1bcba Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 0d3fc4ee01

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread packages/estimate-tx/index.js Resolved

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Cross-chain signing and sponsorship accounting require human validation, alongside resolution of the retained findings.

2 open issues
What changed in this PR

Refactors transaction estimation across Ethereum and Conflux, separating fee suggestions from gas limits and sender costs.

Changes:

  • Unifies estimation across send, confirmation, resend, and gas-editing flows.
  • Updates sponsorship accounting and signing-time fee validation.
  • Adds localized low-fee warnings and marks gas buffers deprecated.
File Description
packages/​rpcs/​wallet_sendTransaction/​index.js Normalizes supplied fees before confirmation.
packages/​rpcs/​eth_signTransaction/​index.js Validates fee caps and avoids unnecessary quotes.
packages/​rpcs/​cfx_signTransaction/​index.js Adds equivalent Core fee validation.
packages/​popup/​src/​utils/​index.js Uses the selected price for balance checks.
packages/​popup/​src/​utils/​gas.js Combines user limits with estimates.
packages/​popup/​src/​pages/​SendTransaction/​index.js Adopts unified estimation.
packages/​popup/​src/​pages/​ResendTransaction/​index.js Fetches replacement fee suggestions separately.
packages/​popup/​src/​pages/​EditGasFee/​index.js Uses unified estimates and limit validation.
packages/​popup/​src/​pages/​ConfirmTransaction/​index.js Updates fee accounting and low-fee warnings.
packages/​popup/​src/​pages/​ConfirmCallBundle/​useCallBundleEstimate.js Delegates bundle estimation to the shared hook.
packages/​popup/​src/​pages/​ConfirmCallBundle/​index.js Updates limit validation and preserves edits.
packages/​popup/​src/​pages/​ConfirmCallBundle/​components/​CallBundleGasEditor.js Adapts editor initialization.
packages/​popup/​src/​locales/​zh.js Adds Chinese low-fee warning.
packages/​popup/​src/​locales/​uk.js Adds Ukrainian low-fee warning.
packages/​popup/​src/​locales/​ru.js Adds Russian low-fee warning.
packages/​popup/​src/​locales/​fr.js Adds French low-fee warning.
packages/​popup/​src/​locales/​en.js Adds English low-fee warning.
packages/​popup/​src/​hooks/​useTransactionEstimate.js Coordinates limits, costs, balances, and sponsorship.
packages/​popup/​src/​hooks/​useGasFeeSuggestions.js Adds independent fee-suggestion fetching.
packages/​popup/​src/​hooks/​useApi.js Documents gas-buffer deprecation only.
packages/​popup/​src/​hooks/​useAdvancedGasEditor.js Separates displayed limits from explicit choices.
packages/​popup/​src/​hooks/​index.js Removes the old estimator wrapper and preserves limits.
packages/​popup/​src/​components/​AdvancedGasEditor.js Validates against estimated limits.
packages/​estimate-tx/​index.js Exports separated estimation helpers.
packages/​estimate-tx/​eth.test.js Adapts EIP-7702 tests to the new interface.
packages/​estimate-tx/​eth.js Separates gas estimation from fee calculation.
packages/​estimate-tx/​cfx.js Separates estimation and sponsorship-aware costs.
packages/​background/​src/​init-db.js Adds gas-buffer deprecation comments only.
.yarn/​versions/​fca8b46c.yml Records package patch releases.

Review effort: Balanced

@mosshqq

mosshqq commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: eb1bcba617

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@mergify mergify Bot added the queued label Oct 22, 2026
@mergify
mergify Bot merged commit bae53c3 into dev Oct 22, 2026
10 checks passed
@mergify

mergify Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-10-22 09:16 UTC · Rule: Automatic queue to dev on approval · triggered by rule Automatic queue to dev on approval [low]
  • ✅ Checks skipped · PR is already up-to-date
  • ✅ Merged — 2026-10-22 09:16 UTC · at bae53c30cfac99763b9cd8f08e3ceae0d4da49cb · squash

This pull request spent 9 seconds in the queue, with no time running CI.

Required conditions to merge

@mergify
mergify Bot deleted the txfields branch October 22, 2026 09:16
@mergify mergify Bot removed the queued label Oct 22, 2026
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.

4 participants