@metamask-previews/transaction-controller 57.3.0-preview-5ff65365 → 57.3.0-preview-ca9d0265
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 +4 -0
- package/dist/TransactionController.cjs +16 -7
- 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 +16 -7
- package/dist/TransactionController.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -18,6 +18,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
18
18
|
- Add optional `ignoreDelegationSignatures` boolean to `estimateGas` method.
|
|
19
19
|
- Add `gasFeeEstimates` property to `TransactionBatchMeta`, populated using `DefaultGasFeeFlow` ([#5886](https://github.com/MetaMask/core/pull/5886))
|
|
20
20
|
|
|
21
|
+
### Fixed
|
|
22
|
+
|
|
23
|
+
- Handle unknown chain IDs on incoming transactions ([#5985](https://github.com/MetaMask/core/pull/5985))
|
|
24
|
+
|
|
21
25
|
## [57.3.0]
|
|
22
26
|
|
|
23
27
|
### Added
|
|
@@ -1704,14 +1704,23 @@ async function _TransactionController_approveTransaction(transactionId, traceCon
|
|
|
1704
1704
|
if (!transactions.length) {
|
|
1705
1705
|
return;
|
|
1706
1706
|
}
|
|
1707
|
-
const finalTransactions =
|
|
1707
|
+
const finalTransactions = [];
|
|
1708
|
+
for (const tx of transactions) {
|
|
1708
1709
|
const { chainId } = tx;
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1710
|
+
try {
|
|
1711
|
+
const networkClientId = __classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_getNetworkClientId).call(this, { chainId });
|
|
1712
|
+
finalTransactions.push({
|
|
1713
|
+
...tx,
|
|
1714
|
+
networkClientId,
|
|
1715
|
+
});
|
|
1716
|
+
}
|
|
1717
|
+
catch (error) {
|
|
1718
|
+
(0, logger_1.projectLogger)('Failed to get network client ID for incoming transaction', {
|
|
1719
|
+
chainId,
|
|
1720
|
+
error,
|
|
1721
|
+
});
|
|
1722
|
+
}
|
|
1723
|
+
}
|
|
1715
1724
|
this.update((state) => {
|
|
1716
1725
|
const { transactions: currentTransactions } = state;
|
|
1717
1726
|
state.transactions = __classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_trimTransactionsForState).call(this, [
|