@metamask-previews/transaction-controller 62.14.0-preview-ae46ab603 → 62.14.0-preview-5ff83bad8

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,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ### Added
11
+
12
+ - Add optional `requiredAssets` to `TransactionMeta` ([#7820](https://github.com/MetaMask/core/pull/7820))
13
+ - Provided by new options in `addTransaction` and `addTransactionBatch`.
14
+
10
15
  ## [62.14.0]
11
16
 
12
17
  ### Changed
@@ -384,7 +384,7 @@ class TransactionController extends base_controller_1.BaseController {
384
384
  */
385
385
  async addTransaction(txParams, options) {
386
386
  (0, logger_1.projectLogger)('Adding transaction', txParams, options);
387
- const { actionId, assetsFiatValues, batchId, deviceConfirmedOn, disableGasBuffer, gasFeeToken, isGasFeeIncluded, isGasFeeSponsored, isStateOnly, method, nestedTransactions, networkClientId, origin, publishHook, requestId, requireApproval, securityAlertResponse, skipInitialGasEstimate, swaps = {}, traceContext, type, } = options;
387
+ const { actionId, assetsFiatValues, batchId, deviceConfirmedOn, disableGasBuffer, gasFeeToken, isGasFeeIncluded, isGasFeeSponsored, isStateOnly, method, nestedTransactions, networkClientId, origin, publishHook, requestId, requiredAssets, requireApproval, securityAlertResponse, skipInitialGasEstimate, swaps = {}, traceContext, type, } = options;
388
388
  // eslint-disable-next-line no-param-reassign
389
389
  txParams = (0, utils_2.normalizeTransactionParams)(txParams);
390
390
  if (!__classPrivateFieldGet(this, _TransactionController_multichainTrackingHelper, "f").has(networkClientId)) {
@@ -444,6 +444,7 @@ class TransactionController extends base_controller_1.BaseController {
444
444
  networkClientId,
445
445
  origin,
446
446
  requestId,
447
+ requiredAssets,
447
448
  securityAlertResponse,
448
449
  selectedGasFeeToken: gasFeeToken,
449
450
  status: types_1.TransactionStatus.unapproved,