@metamask-previews/transaction-controller 68.0.0-preview-268acc0ea → 68.0.0-preview-6e8cbc0b0
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/dist/TransactionController.cjs +4 -2
- 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 +4 -2
- package/dist/TransactionController.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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,8 +2198,9 @@ async function _TransactionController_approveTransaction(transactionId, traceCon
|
|
|
2197
2198
|
skipResimulateCheck: Boolean(blockTime),
|
|
2198
2199
|
}, (txMeta) => {
|
|
2199
2200
|
txMeta.gasFeeTokens = gasFeeTokens;
|
|
2200
|
-
txMeta.isGasFeeSponsored =
|
|
2201
|
-
|
|
2201
|
+
txMeta.isGasFeeSponsored =
|
|
2202
|
+
txMeta.isGasFeeSponsored ?? isGasFeeSponsored;
|
|
2203
|
+
if (txMeta.isGasFeeSponsored) {
|
|
2202
2204
|
txMeta.isExternalSign = true;
|
|
2203
2205
|
}
|
|
2204
2206
|
txMeta.gasUsed = gasUsed;
|