@metamask-previews/transaction-controller 53.0.0-preview-262bd316 → 53.0.0-preview-160372c

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
@@ -10,6 +10,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
  ### Changed
11
11
 
12
12
  - Skip `origin` validation for `batch` transaction type ([#5586](https://github.com/MetaMask/core/pull/5586))
13
+ - **BREAKING:** `enableTxParamsGasFeeUpdates` now expects a callback function instead of a boolean.
14
+ - This callback is invoked before performing `txParams` gas fee updates. The update will proceed only if the callback returns a truthy value.
13
15
 
14
16
  ## [53.0.0]
15
17
 
@@ -187,7 +187,8 @@ class TransactionController extends base_controller_1.BaseController {
187
187
  __classPrivateFieldGet(this, _TransactionController_multichainTrackingHelper, "f").checkForPendingTransactionAndStartPolling();
188
188
  });
189
189
  this.messagingSystem = messenger;
190
- this.isTxParamsGasFeeUpdatesEnabled = enableTxParamsGasFeeUpdates ?? false;
190
+ this.isTxParamsGasFeeUpdatesEnabled =
191
+ enableTxParamsGasFeeUpdates ?? ((_txMeta) => false);
191
192
  this.getNetworkState = getNetworkState;
192
193
  this.isSendFlowHistoryDisabled = disableSendFlowHistory ?? false;
193
194
  this.isHistoryDisabled = disableHistory ?? false;