@metamask-previews/transaction-controller 54.0.0-preview-51fc474a → 54.1.0-preview-13a1c613
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 +11 -1
- package/dist/TransactionController.cjs +1 -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 +3 -3
- package/dist/TransactionController.mjs.map +1 -1
- package/dist/constants.cjs +1 -5
- package/dist/constants.cjs.map +1 -1
- package/dist/constants.d.cts +0 -4
- package/dist/constants.d.cts.map +1 -1
- package/dist/constants.d.mts +0 -4
- package/dist/constants.d.mts.map +1 -1
- package/dist/constants.mjs +0 -4
- package/dist/constants.mjs.map +1 -1
- package/dist/utils/batch.cjs +5 -8
- package/dist/utils/batch.cjs.map +1 -1
- package/dist/utils/batch.d.cts.map +1 -1
- package/dist/utils/batch.d.mts.map +1 -1
- package/dist/utils/batch.mjs +5 -8
- package/dist/utils/batch.mjs.map +1 -1
- package/dist/utils/feature-flags.cjs +46 -9
- package/dist/utils/feature-flags.cjs.map +1 -1
- package/dist/utils/feature-flags.d.cts +67 -9
- package/dist/utils/feature-flags.d.cts.map +1 -1
- package/dist/utils/feature-flags.d.mts +67 -9
- package/dist/utils/feature-flags.d.mts.map +1 -1
- package/dist/utils/feature-flags.mjs +44 -8
- package/dist/utils/feature-flags.mjs.map +1 -1
- package/dist/utils/gas.cjs +29 -18
- package/dist/utils/gas.cjs.map +1 -1
- package/dist/utils/gas.d.cts +1 -0
- package/dist/utils/gas.d.cts.map +1 -1
- package/dist/utils/gas.d.mts +1 -0
- package/dist/utils/gas.d.mts.map +1 -1
- package/dist/utils/gas.mjs +30 -19
- package/dist/utils/gas.mjs.map +1 -1
- package/dist/utils/validation.cjs +15 -5
- package/dist/utils/validation.cjs.map +1 -1
- package/dist/utils/validation.d.cts +4 -0
- package/dist/utils/validation.d.cts.map +1 -1
- package/dist/utils/validation.d.mts +4 -0
- package/dist/utils/validation.d.mts.map +1 -1
- package/dist/utils/validation.mjs +15 -5
- package/dist/utils/validation.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,8 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [54.1.0]
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Configure gas estimation buffers using feature flags ([#5637](https://github.com/MetaMask/core/pull/5637))
|
|
15
|
+
- Update error codes for duplicate batch ID and batch size limit errors ([#5635](https://github.com/MetaMask/core/pull/5635))
|
|
16
|
+
|
|
10
17
|
### Fixed
|
|
11
18
|
|
|
19
|
+
- Do not use fixed gas for type 4 transactions ([#5646](https://github.com/MetaMask/core/pull/5646))
|
|
20
|
+
- Throw if `addTransactionBatch` is called with any nested transaction with `to` matching internal account and including `data` ([#5635](https://github.com/MetaMask/core/pull/5635))
|
|
12
21
|
- Fix incoming transaction support with `queryEntireHistory` set to `false` ([#5582](https://github.com/MetaMask/core/pull/5582))
|
|
13
22
|
|
|
14
23
|
## [54.0.0]
|
|
@@ -1511,7 +1520,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
1511
1520
|
|
|
1512
1521
|
All changes listed after this point were applied to this package following the monorepo conversion.
|
|
1513
1522
|
|
|
1514
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@54.
|
|
1523
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@54.1.0...HEAD
|
|
1524
|
+
[54.1.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@54.0.0...@metamask/transaction-controller@54.1.0
|
|
1515
1525
|
[54.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@53.0.0...@metamask/transaction-controller@54.0.0
|
|
1516
1526
|
[53.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@52.3.0...@metamask/transaction-controller@53.0.0
|
|
1517
1527
|
[52.3.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@52.2.0...@metamask/transaction-controller@52.3.0
|
|
@@ -408,7 +408,7 @@ class TransactionController extends base_controller_1.BaseController {
|
|
|
408
408
|
const isDuplicateBatchId = batchId?.length &&
|
|
409
409
|
this.state.transactions.some((tx) => tx.batchId?.toLowerCase() === batchId?.toLowerCase());
|
|
410
410
|
if (isDuplicateBatchId && origin && origin !== controller_utils_1.ORIGIN_METAMASK) {
|
|
411
|
-
throw rpc_errors_1.
|
|
411
|
+
throw new rpc_errors_1.JsonRpcError(validation_1.ErrorCode.DuplicateBundleId, 'Batch ID already exists');
|
|
412
412
|
}
|
|
413
413
|
const dappSuggestedGasFees = this.generateDappSuggestedGasFees(txParams, origin);
|
|
414
414
|
const transactionType = type ?? (await (0, transaction_type_1.determineTransactionType)(txParams, ethQuery)).type;
|