@metamask-previews/transaction-controller 54.0.0-preview-493eed9 → 54.0.0-preview-cec4a0cd
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 +0 -5
- package/dist/TransactionController.cjs +1 -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 +3 -3
- package/dist/TransactionController.mjs.map +1 -1
- package/dist/utils/batch.cjs +8 -5
- package/dist/utils/batch.cjs.map +1 -1
- package/dist/utils/batch.d.cts.map +1 -1
- package/dist/utils/batch.d.mts.map +1 -1
- package/dist/utils/batch.mjs +8 -5
- package/dist/utils/batch.mjs.map +1 -1
- package/dist/utils/validation.cjs +5 -15
- package/dist/utils/validation.cjs.map +1 -1
- package/dist/utils/validation.d.cts +0 -4
- package/dist/utils/validation.d.cts.map +1 -1
- package/dist/utils/validation.d.mts +0 -4
- package/dist/utils/validation.d.mts.map +1 -1
- package/dist/utils/validation.mjs +5 -15
- package/dist/utils/validation.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,13 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
-
### Changed
|
|
11
|
-
|
|
12
|
-
- Update error codes for duplicate batch ID and batch size limit errors ([#5635](https://github.com/MetaMask/core/pull/5635))
|
|
13
|
-
|
|
14
10
|
### Fixed
|
|
15
11
|
|
|
16
|
-
- Throw if `addTransactionBatch` is called with any nested transaction with `to` matching internal account and including `data` ([#5635](https://github.com/MetaMask/core/pull/5635))
|
|
17
12
|
- Fix incoming transaction support with `queryEntireHistory` set to `false` ([#5582](https://github.com/MetaMask/core/pull/5582))
|
|
18
13
|
|
|
19
14
|
## [54.0.0]
|
|
@@ -408,7 +408,7 @@ class TransactionController extends base_controller_1.BaseController {
|
|
|
408
408
|
const isDuplicateBatchId = batchId?.length &&
|
|
409
409
|
this.state.transactions.some((tx) => tx.batchId?.toLowerCase() === batchId?.toLowerCase());
|
|
410
410
|
if (isDuplicateBatchId && origin && origin !== controller_utils_1.ORIGIN_METAMASK) {
|
|
411
|
-
throw
|
|
411
|
+
throw rpc_errors_1.rpcErrors.invalidInput('Batch ID already exists');
|
|
412
412
|
}
|
|
413
413
|
const dappSuggestedGasFees = this.generateDappSuggestedGasFees(txParams, origin);
|
|
414
414
|
const transactionType = type ?? (await (0, transaction_type_1.determineTransactionType)(txParams, ethQuery)).type;
|