@metamask-previews/transaction-controller 52.2.0-preview-b881bfc9 → 52.3.0-preview-cff14565
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 +12 -1
- package/dist/TransactionController.cjs +1 -1
- package/dist/TransactionController.cjs.map +1 -1
- package/dist/TransactionController.mjs +1 -1
- package/dist/TransactionController.mjs.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +3 -0
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +3 -0
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs.map +1 -1
- package/dist/utils/validation.cjs +10 -11
- package/dist/utils/validation.cjs.map +1 -1
- package/dist/utils/validation.d.cts +3 -1
- package/dist/utils/validation.d.cts.map +1 -1
- package/dist/utils/validation.d.mts +3 -1
- package/dist/utils/validation.d.mts.map +1 -1
- package/dist/utils/validation.mjs +10 -11
- package/dist/utils/validation.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,15 +7,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Throw if `chainId` in `TransactionParams` does not match `networkClientId` when calling `addTransaction` ([#5511](https://github.com/MetaMask/core/pull/5569))
|
|
13
|
+
- Mark `chainId` in `TransactionParams` as deprecated.
|
|
14
|
+
|
|
15
|
+
## [52.3.0]
|
|
16
|
+
|
|
10
17
|
### Added
|
|
11
18
|
|
|
12
19
|
- Adds `RandomisedEstimationsGasFeeFlow` to gas fee flows in `TransactionController` ([#5511](https://github.com/MetaMask/core/pull/5511))
|
|
13
20
|
- Added flow only will be activated if chainId is defined in feature flags.
|
|
21
|
+
- Configure pending transaction polling intervals using remote feature flags ([#5549](https://github.com/MetaMask/core/pull/5549))
|
|
14
22
|
|
|
15
23
|
### Fixed
|
|
16
24
|
|
|
17
25
|
- Fix EIP-7702 contract signature validation on chains with odd-length hexadecimal ID ([#5563](https://github.com/MetaMask/core/pull/5563))
|
|
18
26
|
- Fix simulation of type-4 transactions ([#5552](https://github.com/MetaMask/core/pull/5552))
|
|
27
|
+
- Display incoming transactions in active tab ([#5487](https://github.com/MetaMask/core/pull/5487))
|
|
28
|
+
- Fix bug in `updateTransactionGasFees` affecting `txParams` gas updates when `enableTxParamsGasFeeUpdates` is enabled. ([#5539](https://github.com/MetaMask/core/pull/5539))
|
|
19
29
|
|
|
20
30
|
## [52.2.0]
|
|
21
31
|
|
|
@@ -1453,7 +1463,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
1453
1463
|
|
|
1454
1464
|
All changes listed after this point were applied to this package following the monorepo conversion.
|
|
1455
1465
|
|
|
1456
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@52.
|
|
1466
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@52.3.0...HEAD
|
|
1467
|
+
[52.3.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@52.2.0...@metamask/transaction-controller@52.3.0
|
|
1457
1468
|
[52.2.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@52.1.0...@metamask/transaction-controller@52.2.0
|
|
1458
1469
|
[52.1.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@52.0.0...@metamask/transaction-controller@52.1.0
|
|
1459
1470
|
[52.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@51.0.0...@metamask/transaction-controller@52.0.0
|
|
@@ -399,7 +399,7 @@ class TransactionController extends base_controller_1.BaseController {
|
|
|
399
399
|
});
|
|
400
400
|
const delegationAddressPromise = (0, eip7702_1.getDelegationAddress)(txParams.from, ethQuery).catch(() => undefined);
|
|
401
401
|
const isEIP1559Compatible = await this.getEIP1559Compatibility(networkClientId);
|
|
402
|
-
(0, validation_1.validateTxParams)(txParams, isEIP1559Compatible);
|
|
402
|
+
(0, validation_1.validateTxParams)(txParams, isEIP1559Compatible, chainId);
|
|
403
403
|
if (!txParams.type) {
|
|
404
404
|
// Determine transaction type based on transaction parameters and network compatibility
|
|
405
405
|
(0, utils_2.setEnvelopeType)(txParams, isEIP1559Compatible);
|