@metamask-previews/transaction-controller 57.3.0-preview-ca9d0265 → 57.3.0-preview-e149187d
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 -4
- package/dist/TransactionController.cjs +7 -16
- 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 +7 -16
- package/dist/TransactionController.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -18,10 +18,6 @@ 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
|
-
|
|
25
21
|
## [57.3.0]
|
|
26
22
|
|
|
27
23
|
### Added
|
|
@@ -1704,23 +1704,14 @@ async function _TransactionController_approveTransaction(transactionId, traceCon
|
|
|
1704
1704
|
if (!transactions.length) {
|
|
1705
1705
|
return;
|
|
1706
1706
|
}
|
|
1707
|
-
const finalTransactions =
|
|
1708
|
-
for (const tx of transactions) {
|
|
1707
|
+
const finalTransactions = transactions.map((tx) => {
|
|
1709
1708
|
const { chainId } = tx;
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
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
|
-
}
|
|
1709
|
+
const networkClientId = __classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_getNetworkClientId).call(this, { chainId });
|
|
1710
|
+
return {
|
|
1711
|
+
...tx,
|
|
1712
|
+
networkClientId,
|
|
1713
|
+
};
|
|
1714
|
+
});
|
|
1724
1715
|
this.update((state) => {
|
|
1725
1716
|
const { transactions: currentTransactions } = state;
|
|
1726
1717
|
state.transactions = __classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_trimTransactionsForState).call(this, [
|