@metamask-previews/transaction-controller 59.0.0-preview-ed2a2e6 → 59.0.0-preview-b3ea3f86

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,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ### Fixed
11
+
12
+ - Preserve provided `origin` in `transactions` when calling `addTransactionBatch` ([#6178](https://github.com/MetaMask/core/pull/6178))
13
+
10
14
  ## [59.0.0]
11
15
 
12
16
  ### Added
@@ -363,6 +363,7 @@ class TransactionController extends base_controller_1.BaseController {
363
363
  * @param options.batchId - A custom ID for the batch this transaction belongs to.
364
364
  * @param options.deviceConfirmedOn - An enum to indicate what device confirmed the transaction.
365
365
  * @param options.disableGasBuffer - Whether to disable the gas estimation buffer.
366
+ * @param options.fiatValue - The fiat value of the transaction to be used to passed metrics.
366
367
  * @param options.method - RPC method that requested the transaction.
367
368
  * @param options.nestedTransactions - Params for any nested transactions encoded in the data.
368
369
  * @param options.origin - The origin of the transaction request, such as a dApp hostname.
@@ -380,7 +381,7 @@ class TransactionController extends base_controller_1.BaseController {
380
381
  */
381
382
  async addTransaction(txParams, options) {
382
383
  (0, logger_1.projectLogger)('Adding transaction', txParams, options);
383
- const { actionId, batchId, deviceConfirmedOn, disableGasBuffer, method, nestedTransactions, networkClientId, origin, publishHook, requireApproval, securityAlertResponse, sendFlowHistory, swaps = {}, traceContext, type, } = options;
384
+ const { actionId, batchId, deviceConfirmedOn, disableGasBuffer, fiatValue, method, nestedTransactions, networkClientId, origin, publishHook, requireApproval, securityAlertResponse, sendFlowHistory, swaps = {}, traceContext, type, } = options;
384
385
  txParams = (0, utils_2.normalizeTransactionParams)(txParams);
385
386
  if (!__classPrivateFieldGet(this, _TransactionController_multichainTrackingHelper, "f").has(networkClientId)) {
386
387
  throw new Error(`Network client not found - ${networkClientId}`);
@@ -430,6 +431,7 @@ class TransactionController extends base_controller_1.BaseController {
430
431
  delegationAddress,
431
432
  deviceConfirmedOn,
432
433
  disableGasBuffer,
434
+ fiatValue,
433
435
  id: (0, uuid_1.v1)(),
434
436
  isFirstTimeInteraction: undefined,
435
437
  nestedTransactions,