@metamask-previews/transaction-controller 64.3.0-preview-1e2fe74a0 → 64.3.0-preview-7e80c49
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 +4 -0
- package/dist/TransactionController.cjs +4 -0
- 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 +4 -0
- package/dist/TransactionController.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,10 @@ 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
|
+
- Snapshot `txParamsOriginal` in `updateEditableParams` when `containerTypes` are first applied ([#8546](https://github.com/MetaMask/core/pull/8546))
|
|
13
|
+
|
|
10
14
|
### Fixed
|
|
11
15
|
|
|
12
16
|
- 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))
|
|
@@ -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"),
|