@metamask-previews/transaction-controller 68.0.0-preview-b92250061 → 68.0.0-preview-5588db68c
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 +4 -0
- package/dist/TransactionController.cjs +6 -1
- package/dist/TransactionController.cjs.map +1 -1
- package/dist/TransactionController.d.cts.map +1 -1
- package/dist/TransactionController.d.mts.map +1 -1
- package/dist/TransactionController.mjs +6 -1
- package/dist/TransactionController.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- 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))
|
|
13
|
+
|
|
10
14
|
## [68.0.0]
|
|
11
15
|
|
|
12
16
|
### Changed
|
|
@@ -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 =
|
|
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;
|