@metamask/transaction-controller 64.3.0 → 64.4.0
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 +13 -1
- package/dist/TransactionController.cjs +4 -0
- package/dist/TransactionController.cjs.map +1 -1
- package/dist/TransactionController.d.cts +2 -4
- package/dist/TransactionController.d.cts.map +1 -1
- package/dist/TransactionController.d.mts +2 -4
- package/dist/TransactionController.d.mts.map +1 -1
- package/dist/TransactionController.mjs +4 -0
- package/dist/TransactionController.mjs.map +1 -1
- package/dist/types.cjs +4 -0
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +5 -1
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +5 -1
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs +4 -0
- package/dist/types.mjs.map +1 -1
- package/dist/utils/feature-flags.cjs +3 -5
- package/dist/utils/feature-flags.cjs.map +1 -1
- package/dist/utils/feature-flags.d.cts +3 -3
- package/dist/utils/feature-flags.d.cts.map +1 -1
- package/dist/utils/feature-flags.d.mts +3 -3
- package/dist/utils/feature-flags.d.mts.map +1 -1
- package/dist/utils/feature-flags.mjs +3 -5
- package/dist/utils/feature-flags.mjs.map +1 -1
- package/dist/utils/gas.cjs +13 -9
- package/dist/utils/gas.cjs.map +1 -1
- package/dist/utils/gas.d.cts +7 -5
- package/dist/utils/gas.d.cts.map +1 -1
- package/dist/utils/gas.d.mts +7 -5
- package/dist/utils/gas.d.mts.map +1 -1
- package/dist/utils/gas.mjs +13 -9
- package/dist/utils/gas.mjs.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [64.4.0]
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Snapshot `txParamsOriginal` in `updateEditableParams` when `containerTypes` are first applied ([#8546](https://github.com/MetaMask/core/pull/8546))
|
|
15
|
+
- Add `requiresAuthorizationList` to `TransactionController:estimateGasBatch` results when EIP-7702 batch gas estimation requires a first-time account upgrade ([#8577](https://github.com/MetaMask/core/pull/8577))
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- Gas estimation for EIP-7702 transactions now supports any upgrade-with-data transaction, not only self-targeted ones ([#8467](https://github.com/MetaMask/core/pull/8467))
|
|
20
|
+
|
|
10
21
|
## [64.3.0]
|
|
11
22
|
|
|
12
23
|
### Added
|
|
@@ -2338,7 +2349,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
2338
2349
|
|
|
2339
2350
|
All changes listed after this point were applied to this package following the monorepo conversion.
|
|
2340
2351
|
|
|
2341
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@64.
|
|
2352
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@64.4.0...HEAD
|
|
2353
|
+
[64.4.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@64.3.0...@metamask/transaction-controller@64.4.0
|
|
2342
2354
|
[64.3.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@64.2.0...@metamask/transaction-controller@64.3.0
|
|
2343
2355
|
[64.2.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@64.1.0...@metamask/transaction-controller@64.2.0
|
|
2344
2356
|
[64.1.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@64.0.0...@metamask/transaction-controller@64.1.0
|
|
@@ -991,6 +991,10 @@ class TransactionController extends base_controller_1.BaseController {
|
|
|
991
991
|
}
|
|
992
992
|
if (containerTypes) {
|
|
993
993
|
updatedTransaction.containerTypes = containerTypes;
|
|
994
|
+
const isNewlyWrapped = containerTypes.length && !transactionMeta.containerTypes?.length;
|
|
995
|
+
if (isNewlyWrapped && !transactionMeta.txParamsOriginal) {
|
|
996
|
+
updatedTransaction.txParamsOriginal = (0, lodash_1.cloneDeep)(transactionMeta.txParams);
|
|
997
|
+
}
|
|
994
998
|
}
|
|
995
999
|
await (0, layer1_gas_fee_flow_1.updateTransactionLayer1GasFee)({
|
|
996
1000
|
layer1GasFeeFlows: __classPrivateFieldGet(this, _TransactionController_layer1GasFeeFlows, "f"),
|