@metamask/transaction-controller 62.19.0 → 62.20.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,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [62.20.0]
11
+
12
+ ### Changed
13
+
14
+ - Bump `@metamask/remote-feature-flag-controller` from `^4.0.0` to `^4.1.0` ([#8041](https://github.com/MetaMask/core/pull/8041))
15
+ - Allow `updateTransactionGasFees` to be called for transactions with status submitted in addition to unapproved ([#8042](https://github.com/MetaMask/core/pull/8042))
16
+ - Allow `updatePreviousGasParams` to be called for transactions with status submitted in addition to unapproved ([#8082](https://github.com/MetaMask/core/pull/8082))
17
+
10
18
  ## [62.19.0]
11
19
 
12
20
  ### Changed
@@ -2186,7 +2194,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2186
2194
 
2187
2195
  All changes listed after this point were applied to this package following the monorepo conversion.
2188
2196
 
2189
- [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@62.19.0...HEAD
2197
+ [Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@62.20.0...HEAD
2198
+ [62.20.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@62.19.0...@metamask/transaction-controller@62.20.0
2190
2199
  [62.19.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@62.18.0...@metamask/transaction-controller@62.19.0
2191
2200
  [62.18.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@62.17.1...@metamask/transaction-controller@62.18.0
2192
2201
  [62.17.1]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@62.17.0...@metamask/transaction-controller@62.17.1
@@ -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.validateIfTransactionUnapproved)(transactionMeta, 'updateTransactionGasFees');
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);
@@ -886,7 +886,7 @@ class TransactionController extends base_controller_1.BaseController {
886
886
  *
887
887
  * @param transactionId - The ID of the transaction to update.
888
888
  * @param previousGas - Previous gas values to update.
889
- * @param previousGas.gasLimit - Maxmimum number of units of gas to use for this transaction.
889
+ * @param previousGas.gasLimit - Maximum number of units of gas to use for this transaction.
890
890
  * @param previousGas.maxFeePerGas - Maximum amount per gas to pay for the transaction, including the priority fee.
891
891
  * @param previousGas.maxPriorityFeePerGas - Maximum amount per gas to give to validator as incentive.
892
892
  * @returns The updated transactionMeta.
@@ -896,7 +896,7 @@ class TransactionController extends base_controller_1.BaseController {
896
896
  if (!transactionMeta) {
897
897
  throw new Error(`Cannot update transaction as no transaction metadata found`);
898
898
  }
899
- (0, utils_2.validateIfTransactionUnapproved)(transactionMeta, 'updatePreviousGasParams');
899
+ (0, utils_2.validateIfTransactionUnapprovedOrSubmitted)(transactionMeta, 'updatePreviousGasParams');
900
900
  const transactionPreviousGas = {
901
901
  previousGas: {
902
902
  gasLimit,