@metamask-previews/transaction-controller 64.3.0-preview-4c0846313 → 64.3.0-preview-eb7b1aa4b
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 +9 -0
- 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/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 +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,15 @@ 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
|
+
- 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))
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
|
|
17
|
+
- 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))
|
|
18
|
+
|
|
10
19
|
## [64.3.0]
|
|
11
20
|
|
|
12
21
|
### Added
|
|
@@ -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"),
|