@metamask-previews/transaction-controller 68.0.0-preview-e4b456ca8 → 68.0.1-preview-0bd5566

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [68.0.1]
11
+
12
+ ### Fixed
13
+
14
+ - Set `isExternalSign` to `true` when `isGasFeeSponsored` is confirmed by simulation, so gas-sponsored transactions from accounts that cannot locally sign (e.g. Money Account keyring) skip `KeyringController:signTransaction` ([#9148](https://github.com/MetaMask/core/pull/9148))
15
+
10
16
  ## [68.0.0]
11
17
 
12
18
  ### Changed
@@ -2500,7 +2506,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2500
2506
 
2501
2507
  All changes listed after this point were applied to this package following the monorepo conversion.
2502
2508
 
2503
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@68.0.0...HEAD
2509
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@68.0.1...HEAD
2510
+ [68.0.1]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@68.0.0...@metamask/transaction-controller@68.0.1
2504
2511
  [68.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@67.1.0...@metamask/transaction-controller@68.0.0
2505
2512
  [67.1.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@67.0.0...@metamask/transaction-controller@67.1.0
2506
2513
  [67.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@66.0.1...@metamask/transaction-controller@67.0.0
@@ -425,6 +425,7 @@ class TransactionController extends base_controller_1.BaseController {
425
425
  isGasFeeTokenIgnoredIfBalance,
426
426
  isGasFeeIncluded,
427
427
  isGasFeeSponsored,
428
+ ...(isGasFeeSponsored ? { isExternalSign: true } : {}),
428
429
  // To avoid the property to be set as undefined.
429
430
  ...(excludeNativeTokenForFee === undefined
430
431
  ? {}
@@ -2197,7 +2198,11 @@ async function _TransactionController_approveTransaction(transactionId, traceCon
2197
2198
  skipResimulateCheck: Boolean(blockTime),
2198
2199
  }, (txMeta) => {
2199
2200
  txMeta.gasFeeTokens = gasFeeTokens;
2200
- txMeta.isGasFeeSponsored = isGasFeeSponsored;
2201
+ txMeta.isGasFeeSponsored =
2202
+ txMeta.isGasFeeSponsored ?? isGasFeeSponsored;
2203
+ if (txMeta.isGasFeeSponsored) {
2204
+ txMeta.isExternalSign = true;
2205
+ }
2201
2206
  txMeta.gasUsed = gasUsed;
2202
2207
  if (!__classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_isBalanceChangesSkipped).call(this, txMeta)) {
2203
2208
  txMeta.simulationData = simulationData;