@metamask-previews/transaction-controller 62.19.0-preview-1d2746c → 62.19.0-preview-22ff1f0f2

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
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
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
13
  - Allow `updateTransactionGasFees` to be called for transactions with status submitted in addition to unapproved ([#8042](https://github.com/MetaMask/core/pull/8042))
14
+ - Allow `updatePreviousGasParams` to be called for transactions with status submitted in addition to unapproved ([#8082](https://github.com/MetaMask/core/pull/8082))
14
15
 
15
16
  ## [62.19.0]
16
17
 
@@ -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,