@metamask-previews/transaction-controller 62.19.0-preview-ee1fa5d01 → 62.19.0-preview-7cbd7910e
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 +1 -0
- 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 +2 -2
- package/dist/TransactionController.mjs.map +1 -1
- package/dist/utils/utils.cjs +18 -1
- package/dist/utils/utils.cjs.map +1 -1
- package/dist/utils/utils.d.cts +8 -0
- package/dist/utils/utils.d.cts.map +1 -1
- package/dist/utils/utils.d.mts +8 -0
- package/dist/utils/utils.d.mts.map +1 -1
- package/dist/utils/utils.mjs +16 -0
- package/dist/utils/utils.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
10
10
|
### Changed
|
|
11
11
|
|
|
12
12
|
- Bump `@metamask/remote-feature-flag-controller` from `^4.0.0` to `^4.1.0` ([#8041](https://github.com/MetaMask/core/pull/8041))
|
|
13
|
+
- Allow `updateTransactionGasFees` to be called for transactions with status submitted in addition to unapproved ([#8042](https://github.com/MetaMask/core/pull/8042))
|
|
13
14
|
|
|
14
15
|
## [62.19.0]
|
|
15
16
|
|
|
@@ -825,7 +825,7 @@ class TransactionController extends base_controller_1.BaseController {
|
|
|
825
825
|
if (!transactionMeta) {
|
|
826
826
|
throw new Error(`Cannot update transaction as no transaction metadata found`);
|
|
827
827
|
}
|
|
828
|
-
(0, utils_2.
|
|
828
|
+
(0, utils_2.validateIfTransactionUnapprovedOrSubmitted)(transactionMeta, 'updateTransactionGasFees');
|
|
829
829
|
const clonedTransactionMeta = (0, lodash_1.cloneDeep)(transactionMeta);
|
|
830
830
|
const isTransactionGasFeeEstimatesExists = transactionMeta.gasFeeEstimates;
|
|
831
831
|
const isAutomaticGasFeeUpdateEnabled = __classPrivateFieldGet(this, _TransactionController_isAutomaticGasFeeUpdateEnabled, "f").call(this, transactionMeta);
|