@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 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.3.0...HEAD
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"),