@metamask-previews/transaction-controller 52.2.0-preview-ed8163d → 52.2.0-preview-aa7690c1
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 +0 -1
- package/dist/TransactionController.cjs +2 -5
- 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 +3 -6
- package/dist/TransactionController.mjs.map +1 -1
- package/dist/constants.cjs +0 -1
- package/dist/constants.cjs.map +1 -1
- package/dist/constants.d.cts +0 -1
- package/dist/constants.d.cts.map +1 -1
- package/dist/constants.d.mts +0 -1
- package/dist/constants.d.mts.map +1 -1
- package/dist/constants.mjs +0 -1
- package/dist/constants.mjs.map +1 -1
- package/dist/helpers/GasFeePoller.cjs +4 -2
- package/dist/helpers/GasFeePoller.cjs.map +1 -1
- package/dist/helpers/GasFeePoller.d.cts +4 -2
- package/dist/helpers/GasFeePoller.d.cts.map +1 -1
- package/dist/helpers/GasFeePoller.d.mts +4 -2
- package/dist/helpers/GasFeePoller.d.mts.map +1 -1
- package/dist/helpers/GasFeePoller.mjs +4 -2
- package/dist/helpers/GasFeePoller.mjs.map +1 -1
- package/dist/helpers/PendingTransactionTracker.cjs +2 -6
- package/dist/helpers/PendingTransactionTracker.cjs.map +1 -1
- package/dist/helpers/PendingTransactionTracker.d.cts +2 -5
- package/dist/helpers/PendingTransactionTracker.d.cts.map +1 -1
- package/dist/helpers/PendingTransactionTracker.d.mts +2 -5
- package/dist/helpers/PendingTransactionTracker.d.mts.map +1 -1
- package/dist/helpers/PendingTransactionTracker.mjs +2 -6
- package/dist/helpers/PendingTransactionTracker.mjs.map +1 -1
- package/dist/helpers/TransactionPoller.cjs +8 -12
- package/dist/helpers/TransactionPoller.cjs.map +1 -1
- package/dist/helpers/TransactionPoller.d.cts +3 -7
- package/dist/helpers/TransactionPoller.d.cts.map +1 -1
- package/dist/helpers/TransactionPoller.d.mts +3 -7
- package/dist/helpers/TransactionPoller.d.mts.map +1 -1
- package/dist/helpers/TransactionPoller.mjs +7 -11
- package/dist/helpers/TransactionPoller.mjs.map +1 -1
- package/dist/utils/feature-flags.cjs +2 -24
- package/dist/utils/feature-flags.cjs.map +1 -1
- package/dist/utils/feature-flags.d.cts +0 -33
- package/dist/utils/feature-flags.d.cts.map +1 -1
- package/dist/utils/feature-flags.d.mts +0 -33
- package/dist/utils/feature-flags.d.mts.map +1 -1
- package/dist/utils/feature-flags.mjs +1 -22
- package/dist/utils/feature-flags.mjs.map +1 -1
- package/dist/utils/utils.cjs +1 -23
- package/dist/utils/utils.cjs.map +1 -1
- package/dist/utils/utils.d.cts +0 -8
- package/dist/utils/utils.d.cts.map +1 -1
- package/dist/utils/utils.d.mts +0 -8
- package/dist/utils/utils.d.mts.map +1 -1
- package/dist/utils/utils.mjs +1 -22
- package/dist/utils/utils.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,7 +9,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
### Fixed
|
|
11
11
|
|
|
12
|
-
- Fix EIP-7702 contract signature validation on chains with odd-length hexadecimal ID ([#5563](https://github.com/MetaMask/core/pull/5563))
|
|
13
12
|
- Fix simulation of type-4 transactions ([#5552](https://github.com/MetaMask/core/pull/5552))
|
|
14
13
|
|
|
15
14
|
## [52.2.0]
|
|
@@ -398,10 +398,6 @@ class TransactionController extends base_controller_1.BaseController {
|
|
|
398
398
|
const delegationAddressPromise = (0, eip7702_1.getDelegationAddress)(txParams.from, ethQuery).catch(() => undefined);
|
|
399
399
|
const isEIP1559Compatible = await this.getEIP1559Compatibility(networkClientId);
|
|
400
400
|
(0, validation_1.validateTxParams)(txParams, isEIP1559Compatible);
|
|
401
|
-
if (!txParams.type) {
|
|
402
|
-
// Determine transaction type based on transaction parameters and network compatibility
|
|
403
|
-
(0, utils_2.setEnvelopeType)(txParams, isEIP1559Compatible);
|
|
404
|
-
}
|
|
405
401
|
const isDuplicateBatchId = batchId?.length &&
|
|
406
402
|
this.state.transactions.some((tx) => tx.batchId?.toLowerCase() === batchId?.toLowerCase());
|
|
407
403
|
if (isDuplicateBatchId && origin && origin !== controller_utils_1.ORIGIN_METAMASK) {
|
|
@@ -1953,7 +1949,6 @@ _TransactionController_internalEvents = new WeakMap(), _TransactionController_me
|
|
|
1953
1949
|
getGlobalLock: () => __classPrivateFieldGet(this, _TransactionController_multichainTrackingHelper, "f").acquireNonceLockForChainIdKey({
|
|
1954
1950
|
chainId,
|
|
1955
1951
|
}),
|
|
1956
|
-
messenger: this.messagingSystem,
|
|
1957
1952
|
publishTransaction: (_ethQuery, transactionMeta) => this.publishTransaction(_ethQuery, transactionMeta, {
|
|
1958
1953
|
skipSubmitHistory: true,
|
|
1959
1954
|
}),
|
|
@@ -2121,10 +2116,12 @@ _TransactionController_internalEvents = new WeakMap(), _TransactionController_me
|
|
|
2121
2116
|
(0, logger_1.projectLogger)('Updated simulation data', transactionId, simulationData);
|
|
2122
2117
|
}, _TransactionController_onGasFeePollerTransactionUpdate = function _TransactionController_onGasFeePollerTransactionUpdate({ transactionId, gasFeeEstimates, gasFeeEstimatesLoaded, layer1GasFee, }) {
|
|
2123
2118
|
__classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_updateTransactionInternal).call(this, { transactionId, skipHistory: true }, (txMeta) => {
|
|
2119
|
+
// eslint-disable-next-line @typescript-eslint/no-floating-promises
|
|
2124
2120
|
(0, GasFeePoller_1.updateTransactionGasFees)({
|
|
2125
2121
|
txMeta,
|
|
2126
2122
|
gasFeeEstimates,
|
|
2127
2123
|
gasFeeEstimatesLoaded,
|
|
2124
|
+
getEIP1559Compatibility: this.getEIP1559Compatibility.bind(this),
|
|
2128
2125
|
isTxParamsGasFeeUpdatesEnabled: this.isTxParamsGasFeeUpdatesEnabled,
|
|
2129
2126
|
layer1GasFee,
|
|
2130
2127
|
});
|