@metamask-previews/transaction-controller 62.6.0-preview-cb4a07d5 → 62.6.0-preview-eb60826c
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 +1 -0
- package/dist/TransactionController.cjs +2 -1
- package/dist/TransactionController.cjs.map +1 -1
- package/dist/TransactionController.d.cts.map +1 -1
- package/dist/TransactionController.d.mts.map +1 -1
- package/dist/TransactionController.mjs +2 -1
- package/dist/TransactionController.mjs.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +12 -0
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +12 -0
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs.map +1 -1
- package/dist/utils/batch.cjs +2 -1
- package/dist/utils/batch.cjs.map +1 -1
- package/dist/utils/batch.d.cts +1 -0
- package/dist/utils/batch.d.cts.map +1 -1
- package/dist/utils/batch.d.mts +1 -0
- package/dist/utils/batch.d.mts.map +1 -1
- package/dist/utils/batch.mjs +2 -1
- package/dist/utils/batch.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
17
17
|
- Add optional `isTimeoutEnabled` callback to disable for specific transactions.
|
|
18
18
|
- Ignores transactions with future nonce.
|
|
19
19
|
- Threshold determined by feature flag.
|
|
20
|
+
- Adding a new transaction meta property `requestId`. It is supported for both simple and batched transactions ([#7415](https://github.com/MetaMask/core/pull/7415))
|
|
20
21
|
|
|
21
22
|
### Changed
|
|
22
23
|
|
|
@@ -391,7 +391,7 @@ class TransactionController extends base_controller_1.BaseController {
|
|
|
391
391
|
*/
|
|
392
392
|
async addTransaction(txParams, options) {
|
|
393
393
|
(0, logger_1.projectLogger)('Adding transaction', txParams, options);
|
|
394
|
-
const { actionId, assetsFiatValues, batchId, deviceConfirmedOn, disableGasBuffer, gasFeeToken, isGasFeeIncluded, isGasFeeSponsored, method, nestedTransactions, networkClientId, origin, publishHook, requireApproval, securityAlertResponse, sendFlowHistory, skipInitialGasEstimate, swaps = {}, traceContext, type, } = options;
|
|
394
|
+
const { actionId, assetsFiatValues, batchId, deviceConfirmedOn, disableGasBuffer, gasFeeToken, isGasFeeIncluded, isGasFeeSponsored, method, nestedTransactions, networkClientId, origin, publishHook, requestId, requireApproval, securityAlertResponse, sendFlowHistory, skipInitialGasEstimate, swaps = {}, traceContext, type, } = options;
|
|
395
395
|
// eslint-disable-next-line no-param-reassign
|
|
396
396
|
txParams = (0, utils_2.normalizeTransactionParams)(txParams);
|
|
397
397
|
if (!__classPrivateFieldGet(this, _TransactionController_multichainTrackingHelper, "f").has(networkClientId)) {
|
|
@@ -449,6 +449,7 @@ class TransactionController extends base_controller_1.BaseController {
|
|
|
449
449
|
nestedTransactions,
|
|
450
450
|
networkClientId,
|
|
451
451
|
origin,
|
|
452
|
+
requestId,
|
|
452
453
|
securityAlertResponse,
|
|
453
454
|
selectedGasFeeToken: gasFeeToken,
|
|
454
455
|
status: types_1.TransactionStatus.unapproved,
|