Uh oh!
There was an error while loading. Please reload this page.
fix: Tx state listener and signature coverage - #6906
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
lwin-kyaw
commented
Oct 21, 2025
@metamaskbot publish-preview |
Uh oh!
There was an error while loading. Please reload this page.
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions. |
lwin-kyaw
commented
Oct 22, 2025
@metamaskbot publish-preview |
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions. |
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
lwin-kyaw
commented
Oct 22, 2025
@metamaskbot publish-preview |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Preview builds have been published. See these instructions for more information about preview builds. Expand for full list of packages and versions. |
Uh oh!
There was an error while loading. Please reload this page.
…r/multichain-transactions-controller * origin/main: (35 commits) feat: `JsonRpcEngineV2` (#6176) Release 641.0.0 (#6940) feat: Add transaction emulation actions (#6935) Release/640.0.0 (#6934) fix(core-backend): control randomness to fix flaky test (#6936) chore: Add `@metamask-previews/*` to NPM age gate exceptions (#6937) Release/639.0.0 (#6931) feat: make getCryptoApproveTransactionParams synchronous (#6930) feat: add new actions to `KeyringController` (#6928) feat: add `getAccounts` to `AccountsController` (#6927) chore: remove `Monad Mainnet` single call balance contract and add into account v4 (#6929) Release/638.0.0 (#6923) fix: Downgrade `multiformats` to `^9.9.0` to avoid ESM-only dependency (#6920) Release/637.0.0 (#6919) feat(account-tree-controller): add callbacks for hidden and pinned data (#6910) Release 636.0.0 (#6918) fix(core-backend): reconnection logic (#6861) fix: Tx state listener and signature coverage (#6906) Release/635.0.0 (#6917) fix(base-controller): add TypeScript declaration file for legacy module resolution (#6915) ...
Explanation
This PR includes ~
personal_coveragecheck in the signature-coverage resultTransactionMeta.SimulationDatainstead of referential equality in tx-coverage check, to avoid triggering multiple coverage check requests.normalizeSignatureRequestfunction which normalize the requests for TypedSignature similar to the security-alerts API.makeInitSignatureCoverageCheckBodyfunction as signature data is not alwaysstring(e.g.eth_signTypedDatauses Array of Object) and the data is already validated in the SignatureController before adding to the state.References
Checklist
Note
Adds request normalization and method parsing for signatures, triggers signature coverage for all new requests, and uses deep equality for transaction simulationData to reduce redundant checks.
signatureRequests(removespersonal_sign-only gate).txMeta.simulationDatato re-check coverage only on meaningful changes.normalizeSignatureRequestoption; clones and normalizes before backend call.InitSignatureCoverageCheckRequest.datanow acceptsJson; removed string-only validation.parseSignatureRequestMethodto derive correct JSON-RPC method (handles typed sign V1/V3/V4) and uses it in init body.parseSignatureRequestMethodandNormalizeSignatureRequestFn.SignTypedDataVersionenum.lodash(forcloneDeep/isEqual).Written by Cursor Bugbot for commit 7adaa54. This will update automatically on new commits. Configure here.