@metamask-previews/transaction-controller 29.1.0-preview-ff0abae → 32.0.0-preview-8e708969
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 +41 -1
- package/dist/TransactionController.js +9 -9
- package/dist/TransactionController.mjs +8 -8
- package/dist/{chunk-A7HHUDTE.mjs → chunk-2TUDWNEI.mjs} +3 -3
- package/dist/{chunk-EXPINI6I.js → chunk-3ZRHCVVS.js} +3 -3
- package/dist/{chunk-B3KC7EIQ.mjs → chunk-5GJ4USHK.mjs} +16 -15
- package/dist/chunk-5GJ4USHK.mjs.map +1 -0
- package/dist/{chunk-E76IQWXN.js → chunk-7MKQDZKY.js} +3 -3
- package/dist/{chunk-4GQZF4A5.mjs → chunk-CDF4QNJA.mjs} +2 -2
- package/dist/{chunk-XD4HUW35.js → chunk-DLOQPH4M.js} +4 -4
- package/dist/{chunk-UCN7HXGX.mjs → chunk-G5U6ABRU.mjs} +2 -2
- package/dist/{chunk-MZHBDTIW.js → chunk-HAQUUY6K.js} +21 -20
- package/dist/chunk-HAQUUY6K.js.map +1 -0
- package/dist/{chunk-DTDTOMTB.js → chunk-J7CHNMHF.js} +6 -5
- package/dist/chunk-J7CHNMHF.js.map +1 -0
- package/dist/{chunk-B2ED6364.mjs → chunk-METHOFMG.mjs} +1 -2
- package/dist/chunk-METHOFMG.mjs.map +1 -0
- package/dist/{chunk-JC2WLSM5.mjs → chunk-NRQUBP3S.mjs} +2 -2
- package/dist/{chunk-4HP4W5YQ.js → chunk-Q6Q44V4W.js} +6 -6
- package/dist/{chunk-LG2JQVTQ.js → chunk-RAOYRJ25.js} +1 -2
- package/dist/chunk-RAOYRJ25.js.map +1 -0
- package/dist/{chunk-CQPIO3NZ.mjs → chunk-V6HVF4EN.mjs} +3 -3
- package/dist/{chunk-Y7ENNK7L.mjs → chunk-VMZI55HT.mjs} +6 -5
- package/dist/chunk-VMZI55HT.mjs.map +1 -0
- package/dist/{chunk-2OH557V3.js → chunk-YXSCBWTU.js} +9 -9
- package/dist/errors.js +1 -1
- package/dist/errors.mjs +1 -1
- package/dist/gas-flows/DefaultGasFeeFlow.js +5 -5
- package/dist/gas-flows/DefaultGasFeeFlow.mjs +4 -4
- package/dist/gas-flows/LineaGasFeeFlow.js +6 -6
- package/dist/gas-flows/LineaGasFeeFlow.mjs +5 -5
- package/dist/gas-flows/TestGasFeeFlow.js +1 -1
- package/dist/gas-flows/TestGasFeeFlow.mjs +1 -1
- package/dist/helpers/EtherscanRemoteTransactionSource.js +1 -1
- package/dist/helpers/EtherscanRemoteTransactionSource.mjs +1 -1
- package/dist/helpers/GasFeePoller.js +4 -4
- package/dist/helpers/GasFeePoller.mjs +3 -3
- package/dist/helpers/IncomingTransactionHelper.js +2 -2
- package/dist/helpers/IncomingTransactionHelper.mjs +1 -1
- package/dist/helpers/MultichainTrackingHelper.js +1 -1
- package/dist/helpers/MultichainTrackingHelper.mjs +1 -1
- package/dist/helpers/PendingTransactionTracker.js +1 -1
- package/dist/helpers/PendingTransactionTracker.mjs +1 -1
- package/dist/index.js +9 -9
- package/dist/index.mjs +8 -8
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/TransactionController.d.ts +5 -4
- package/dist/types/TransactionController.d.ts.map +1 -1
- package/dist/types/helpers/IncomingTransactionHelper.d.ts +3 -2
- package/dist/types/helpers/IncomingTransactionHelper.d.ts.map +1 -1
- package/dist/types/types.d.ts +0 -4
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types.js +2 -2
- package/dist/types.mjs +1 -1
- package/dist/utils/external-transactions.js +1 -1
- package/dist/utils/external-transactions.mjs +1 -1
- package/dist/utils/gas-fees.js +4 -4
- package/dist/utils/gas-fees.mjs +3 -3
- package/dist/utils/gas-flow.js +3 -3
- package/dist/utils/gas-flow.mjs +2 -2
- package/dist/utils/simulation-api.js +1 -1
- package/dist/utils/simulation-api.mjs +1 -1
- package/dist/utils/simulation.js +1 -1
- package/dist/utils/simulation.mjs +1 -1
- package/dist/utils/swaps.js +1 -1
- package/dist/utils/swaps.mjs +1 -1
- package/dist/utils/transaction-type.js +1 -1
- package/dist/utils/transaction-type.mjs +1 -1
- package/dist/utils/utils.js +1 -1
- package/dist/utils/utils.mjs +1 -1
- package/dist/utils/validation.js +1 -1
- package/dist/utils/validation.mjs +1 -1
- package/package.json +11 -10
- package/dist/chunk-B2ED6364.mjs.map +0 -1
- package/dist/chunk-B3KC7EIQ.mjs.map +0 -1
- package/dist/chunk-DTDTOMTB.js.map +0 -1
- package/dist/chunk-LG2JQVTQ.js.map +0 -1
- package/dist/chunk-MZHBDTIW.js.map +0 -1
- package/dist/chunk-Y7ENNK7L.mjs.map +0 -1
- /package/dist/{chunk-A7HHUDTE.mjs.map → chunk-2TUDWNEI.mjs.map} +0 -0
- /package/dist/{chunk-EXPINI6I.js.map → chunk-3ZRHCVVS.js.map} +0 -0
- /package/dist/{chunk-E76IQWXN.js.map → chunk-7MKQDZKY.js.map} +0 -0
- /package/dist/{chunk-4GQZF4A5.mjs.map → chunk-CDF4QNJA.mjs.map} +0 -0
- /package/dist/{chunk-XD4HUW35.js.map → chunk-DLOQPH4M.js.map} +0 -0
- /package/dist/{chunk-UCN7HXGX.mjs.map → chunk-G5U6ABRU.mjs.map} +0 -0
- /package/dist/{chunk-JC2WLSM5.mjs.map → chunk-NRQUBP3S.mjs.map} +0 -0
- /package/dist/{chunk-4HP4W5YQ.js.map → chunk-Q6Q44V4W.js.map} +0 -0
- /package/dist/{chunk-CQPIO3NZ.mjs.map → chunk-V6HVF4EN.mjs.map} +0 -0
- /package/dist/{chunk-2OH557V3.js.map → chunk-YXSCBWTU.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,43 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [32.0.0]
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- **BREAKING:** Bump minimum Node version to 18.18 ([#3611](https://github.com/MetaMask/core/pull/3611))
|
|
15
|
+
- **BREAKING:** Bump dependency and peer dependency `@metamask/approval-controller` to `^7.0.0` ([#4352](https://github.com/MetaMask/core/pull/4352))
|
|
16
|
+
- **BREAKING:** Bump dependency and peer dependency `@metamask/gas-fee-controller` to `^17.0.0` ([#4352](https://github.com/MetaMask/core/pull/4352))
|
|
17
|
+
- **BREAKING:** Bump dependency and peer dependency `@metamask/network-controller` to `^19.0.0` ([#4352](https://github.com/MetaMask/core/pull/4352))
|
|
18
|
+
- Bump `@metamask/base-controller` to `^6.0.0` ([#4352](https://github.com/MetaMask/core/pull/4352))
|
|
19
|
+
- Bump `@metamask/controller-utils` to `^11.0.0` ([#4352](https://github.com/MetaMask/core/pull/4352))
|
|
20
|
+
|
|
21
|
+
## [31.0.0]
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- **BREAKING:** Bump dependency and peer dependency `@metamask/approval-controller` to `^6.0.2` ([#4342](https://github.com/MetaMask/core/pull/4342))
|
|
26
|
+
- **BREAKING:** Bump dependency and peer dependency `@metamask/gas-fee-controller` to `^16.0.0` ([#4342](https://github.com/MetaMask/core/pull/4342))
|
|
27
|
+
- **BREAKING:** Bump dependency and peer dependency `@metamask/network-controller` to `^18.1.3` ([#4342](https://github.com/MetaMask/core/pull/4342))
|
|
28
|
+
- Bump `async-mutex` to `^0.5.0` ([#4335](https://github.com/MetaMask/core/pull/4335))
|
|
29
|
+
- Bump `@metamask/controller-utils` to `^10.0.0` ([#4342](https://github.com/MetaMask/core/pull/4342))
|
|
30
|
+
|
|
31
|
+
### Removed
|
|
32
|
+
|
|
33
|
+
- **BREAKING:** Remove `sign` from `TransactionType` ([#4319](https://github.com/MetaMask/core/pull/4319))
|
|
34
|
+
- This represented an `eth_sign` transaction, but support for that RPC method is being removed, so this is no longer needed.
|
|
35
|
+
|
|
36
|
+
### Fixed
|
|
37
|
+
|
|
38
|
+
- Pass an unfrozen transaction to the `afterSign` hook so that it is able to modify the transaction ([#4343](https://github.com/MetaMask/core/pull/4343))
|
|
39
|
+
|
|
40
|
+
## [30.0.0]
|
|
41
|
+
|
|
42
|
+
### Fixed
|
|
43
|
+
|
|
44
|
+
- **BREAKING**: Update from `nonce-tracker@^3.0.0` to `@metamask/nonce-tracker@^5.0.0` to mitigate issue with redundant polling loops in block tracker. ([#4309](https://github.com/MetaMask/core/pull/4309))
|
|
45
|
+
- The constructor now expects the `blockTracker` option being an instance of `@metamask/eth-block-tracker` instead of`eth-block-tracker`.
|
|
46
|
+
|
|
10
47
|
## [29.1.0]
|
|
11
48
|
|
|
12
49
|
### Changed
|
|
@@ -839,7 +876,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
839
876
|
|
|
840
877
|
All changes listed after this point were applied to this package following the monorepo conversion.
|
|
841
878
|
|
|
842
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@
|
|
879
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@32.0.0...HEAD
|
|
880
|
+
[32.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@31.0.0...@metamask/transaction-controller@32.0.0
|
|
881
|
+
[31.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@30.0.0...@metamask/transaction-controller@31.0.0
|
|
882
|
+
[30.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@29.1.0...@metamask/transaction-controller@30.0.0
|
|
843
883
|
[29.1.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@29.0.2...@metamask/transaction-controller@29.1.0
|
|
844
884
|
[29.0.2]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@29.0.1...@metamask/transaction-controller@29.0.2
|
|
845
885
|
[29.0.1]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@29.0.0...@metamask/transaction-controller@29.0.1
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkHAQUUY6Kjs = require('./chunk-HAQUUY6K.js');
|
|
8
8
|
require('./chunk-PRUNMTRD.js');
|
|
9
9
|
require('./chunk-IT3SYNZ6.js');
|
|
10
10
|
require('./chunk-KT6UAKBB.js');
|
|
@@ -18,22 +18,22 @@ require('./chunk-NYKRCWBG.js');
|
|
|
18
18
|
require('./chunk-WR5F34OW.js');
|
|
19
19
|
require('./chunk-YVCX6Z75.js');
|
|
20
20
|
require('./chunk-TJMQEH57.js');
|
|
21
|
-
require('./chunk-
|
|
21
|
+
require('./chunk-7MKQDZKY.js');
|
|
22
22
|
require('./chunk-2XKEAKQG.js');
|
|
23
|
-
require('./chunk-
|
|
23
|
+
require('./chunk-J7CHNMHF.js');
|
|
24
24
|
require('./chunk-PUESYN62.js');
|
|
25
25
|
require('./chunk-EQT25RSP.js');
|
|
26
26
|
require('./chunk-FDUCRHYT.js');
|
|
27
27
|
require('./chunk-HMOSP33F.js');
|
|
28
|
-
require('./chunk-
|
|
29
|
-
require('./chunk-
|
|
30
|
-
require('./chunk-
|
|
28
|
+
require('./chunk-Q6Q44V4W.js');
|
|
29
|
+
require('./chunk-YXSCBWTU.js');
|
|
30
|
+
require('./chunk-3ZRHCVVS.js');
|
|
31
31
|
require('./chunk-UT4M4XI3.js');
|
|
32
32
|
require('./chunk-UGFBA4GV.js');
|
|
33
|
-
require('./chunk-
|
|
33
|
+
require('./chunk-DLOQPH4M.js');
|
|
34
34
|
require('./chunk-UGN7PBON.js');
|
|
35
35
|
require('./chunk-S6VGOPUY.js');
|
|
36
|
-
require('./chunk-
|
|
36
|
+
require('./chunk-RAOYRJ25.js');
|
|
37
37
|
require('./chunk-Z4BLTVTB.js');
|
|
38
38
|
|
|
39
39
|
|
|
@@ -41,5 +41,5 @@ require('./chunk-Z4BLTVTB.js');
|
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
exports.ApprovalState =
|
|
44
|
+
exports.ApprovalState = _chunkHAQUUY6Kjs.ApprovalState; exports.CANCEL_RATE = _chunkHAQUUY6Kjs.CANCEL_RATE; exports.HARDFORK = _chunkHAQUUY6Kjs.HARDFORK; exports.SPEED_UP_RATE = _chunkHAQUUY6Kjs.SPEED_UP_RATE; exports.TransactionController = _chunkHAQUUY6Kjs.TransactionController;
|
|
45
45
|
//# sourceMappingURL=TransactionController.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
HARDFORK,
|
|
5
5
|
SPEED_UP_RATE,
|
|
6
6
|
TransactionController
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5GJ4USHK.mjs";
|
|
8
8
|
import "./chunk-6DDVVUJC.mjs";
|
|
9
9
|
import "./chunk-AHSDUIMT.mjs";
|
|
10
10
|
import "./chunk-K4KOSAGM.mjs";
|
|
@@ -18,22 +18,22 @@ import "./chunk-VEVVBHP3.mjs";
|
|
|
18
18
|
import "./chunk-Z4GV3YQQ.mjs";
|
|
19
19
|
import "./chunk-FG74Z3F5.mjs";
|
|
20
20
|
import "./chunk-FMRLPVFZ.mjs";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-NRQUBP3S.mjs";
|
|
22
22
|
import "./chunk-NOHEXQ7Y.mjs";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-VMZI55HT.mjs";
|
|
24
24
|
import "./chunk-AZ4WIRH3.mjs";
|
|
25
25
|
import "./chunk-CPMTUMMZ.mjs";
|
|
26
26
|
import "./chunk-QZLPYOGC.mjs";
|
|
27
27
|
import "./chunk-HQSNKCXI.mjs";
|
|
28
|
-
import "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-2TUDWNEI.mjs";
|
|
29
|
+
import "./chunk-V6HVF4EN.mjs";
|
|
30
|
+
import "./chunk-G5U6ABRU.mjs";
|
|
31
31
|
import "./chunk-IJ5GUKRO.mjs";
|
|
32
32
|
import "./chunk-J56A7UCK.mjs";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-CDF4QNJA.mjs";
|
|
34
34
|
import "./chunk-O6ZZVIFH.mjs";
|
|
35
35
|
import "./chunk-UQQWZT6C.mjs";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-METHOFMG.mjs";
|
|
37
37
|
import "./chunk-XUI43LEZ.mjs";
|
|
38
38
|
export {
|
|
39
39
|
ApprovalState,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DefaultGasFeeFlow
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-V6HVF4EN.mjs";
|
|
4
4
|
import {
|
|
5
5
|
projectLogger
|
|
6
6
|
} from "./chunk-UQQWZT6C.mjs";
|
|
7
7
|
import {
|
|
8
8
|
GasFeeEstimateLevel
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-METHOFMG.mjs";
|
|
10
10
|
import {
|
|
11
11
|
__privateAdd,
|
|
12
12
|
__privateMethod
|
|
@@ -118,4 +118,4 @@ feesToString_fn = function(fees) {
|
|
|
118
118
|
export {
|
|
119
119
|
LineaGasFeeFlow
|
|
120
120
|
};
|
|
121
|
-
//# sourceMappingURL=chunk-
|
|
121
|
+
//# sourceMappingURL=chunk-2TUDWNEI.mjs.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkUT4M4XI3js = require('./chunk-UT4M4XI3.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkDLOQPH4Mjs = require('./chunk-DLOQPH4M.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkS6VGOPUYjs = require('./chunk-S6VGOPUY.js');
|
|
@@ -186,7 +186,7 @@ async function getSuggestedGasFees(request) {
|
|
|
186
186
|
if (!eip1559 && txMeta.txParams.gasPrice || eip1559 && txMeta.txParams.maxFeePerGas && txMeta.txParams.maxPriorityFeePerGas) {
|
|
187
187
|
return {};
|
|
188
188
|
}
|
|
189
|
-
const gasFeeFlow =
|
|
189
|
+
const gasFeeFlow = _chunkDLOQPH4Mjs.getGasFeeFlow.call(void 0, txMeta, gasFeeFlows);
|
|
190
190
|
try {
|
|
191
191
|
const gasFeeControllerData = await getGasFeeEstimates({ networkClientId });
|
|
192
192
|
const response = await gasFeeFlow.getGasFees({
|
|
@@ -221,4 +221,4 @@ async function getSuggestedGasFees(request) {
|
|
|
221
221
|
|
|
222
222
|
|
|
223
223
|
exports.updateGasFees = updateGasFees; exports.gweiDecimalToWeiHex = gweiDecimalToWeiHex;
|
|
224
|
-
//# sourceMappingURL=chunk-
|
|
224
|
+
//# sourceMappingURL=chunk-3ZRHCVVS.js.map
|
|
@@ -38,14 +38,14 @@ import {
|
|
|
38
38
|
} from "./chunk-FMRLPVFZ.mjs";
|
|
39
39
|
import {
|
|
40
40
|
GasFeePoller
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-NRQUBP3S.mjs";
|
|
42
42
|
import {
|
|
43
43
|
getTransactionLayer1GasFee,
|
|
44
44
|
updateTransactionLayer1GasFee
|
|
45
45
|
} from "./chunk-NOHEXQ7Y.mjs";
|
|
46
46
|
import {
|
|
47
47
|
IncomingTransactionHelper
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-VMZI55HT.mjs";
|
|
49
49
|
import {
|
|
50
50
|
MultichainTrackingHelper
|
|
51
51
|
} from "./chunk-AZ4WIRH3.mjs";
|
|
@@ -54,13 +54,13 @@ import {
|
|
|
54
54
|
} from "./chunk-CPMTUMMZ.mjs";
|
|
55
55
|
import {
|
|
56
56
|
LineaGasFeeFlow
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-2TUDWNEI.mjs";
|
|
58
58
|
import {
|
|
59
59
|
DefaultGasFeeFlow
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-V6HVF4EN.mjs";
|
|
61
61
|
import {
|
|
62
62
|
updateGasFees
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-G5U6ABRU.mjs";
|
|
64
64
|
import {
|
|
65
65
|
updatePostTransactionBalance,
|
|
66
66
|
updateSwapsTransaction
|
|
@@ -79,7 +79,7 @@ import {
|
|
|
79
79
|
} from "./chunk-J56A7UCK.mjs";
|
|
80
80
|
import {
|
|
81
81
|
getGasFeeFlow
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-CDF4QNJA.mjs";
|
|
83
83
|
import {
|
|
84
84
|
projectLogger
|
|
85
85
|
} from "./chunk-UQQWZT6C.mjs";
|
|
@@ -161,7 +161,7 @@ var TransactionController = class extends BaseController {
|
|
|
161
161
|
* @param options.getNetworkState - Gets the state of the network controller.
|
|
162
162
|
* @param options.getPermittedAccounts - Get accounts that a given origin has permissions for.
|
|
163
163
|
* @param options.getSavedGasFees - Gets the saved gas fee config.
|
|
164
|
-
* @param options.
|
|
164
|
+
* @param options.getSelectedAccount - Gets the address of the currently selected account.
|
|
165
165
|
* @param options.incomingTransactions - Configuration options for incoming transaction support.
|
|
166
166
|
* @param options.isMultichainEnabled - Enable multichain support.
|
|
167
167
|
* @param options.isSimulationEnabled - Whether new transactions will be automatically simulated.
|
|
@@ -189,7 +189,7 @@ var TransactionController = class extends BaseController {
|
|
|
189
189
|
getNetworkState,
|
|
190
190
|
getPermittedAccounts,
|
|
191
191
|
getSavedGasFees,
|
|
192
|
-
|
|
192
|
+
getSelectedAccount,
|
|
193
193
|
incomingTransactions = {},
|
|
194
194
|
isMultichainEnabled = false,
|
|
195
195
|
isSimulationEnabled,
|
|
@@ -259,7 +259,7 @@ var TransactionController = class extends BaseController {
|
|
|
259
259
|
this.getCurrentNetworkEIP1559Compatibility = getCurrentNetworkEIP1559Compatibility;
|
|
260
260
|
this.getGasFeeEstimates = getGasFeeEstimates || (() => Promise.resolve({}));
|
|
261
261
|
this.getPermittedAccounts = getPermittedAccounts;
|
|
262
|
-
this.
|
|
262
|
+
this.getSelectedAccount = getSelectedAccount;
|
|
263
263
|
this.getExternalPendingTransactions = getExternalPendingTransactions ?? (() => []);
|
|
264
264
|
this.securityProviderRequest = securityProviderRequest;
|
|
265
265
|
__privateSet(this, _incomingTransactionOptions, incomingTransactions);
|
|
@@ -470,7 +470,7 @@ var TransactionController = class extends BaseController {
|
|
|
470
470
|
if (origin) {
|
|
471
471
|
await validateTransactionOrigin(
|
|
472
472
|
await this.getPermittedAccounts(origin),
|
|
473
|
-
this.
|
|
473
|
+
this.getSelectedAccount("eip:155:*").address,
|
|
474
474
|
txParams.from,
|
|
475
475
|
origin
|
|
476
476
|
);
|
|
@@ -2126,16 +2126,17 @@ var TransactionController = class extends BaseController {
|
|
|
2126
2126
|
projectLogger("Skipping signed status as no signed transaction");
|
|
2127
2127
|
return void 0;
|
|
2128
2128
|
}
|
|
2129
|
-
|
|
2129
|
+
const transactionMetaFromHook = cloneDeep(transactionMeta);
|
|
2130
|
+
if (!this.afterSign(transactionMetaFromHook, signedTx)) {
|
|
2130
2131
|
this.updateTransaction(
|
|
2131
|
-
|
|
2132
|
+
transactionMetaFromHook,
|
|
2132
2133
|
"TransactionController#signTransaction - Update after sign"
|
|
2133
2134
|
);
|
|
2134
2135
|
projectLogger("Skipping signed status based on hook");
|
|
2135
2136
|
return void 0;
|
|
2136
2137
|
}
|
|
2137
2138
|
const transactionMetaWithRsv = {
|
|
2138
|
-
...this.updateTransactionMetaRSV(
|
|
2139
|
+
...this.updateTransactionMetaRSV(transactionMetaFromHook, signedTx),
|
|
2139
2140
|
status: "signed" /* signed */
|
|
2140
2141
|
};
|
|
2141
2142
|
this.updateTransaction(
|
|
@@ -2265,7 +2266,7 @@ createIncomingTransactionHelper_fn = function({
|
|
|
2265
2266
|
}) {
|
|
2266
2267
|
const incomingTransactionHelper = new IncomingTransactionHelper({
|
|
2267
2268
|
blockTracker,
|
|
2268
|
-
getCurrentAccount: this.
|
|
2269
|
+
getCurrentAccount: this.getSelectedAccount,
|
|
2269
2270
|
getLastFetchedBlockNumbers: () => this.state.lastFetchedBlockNumbers,
|
|
2270
2271
|
getChainId: chainId ? () => chainId : this.getChainId.bind(this),
|
|
2271
2272
|
isEnabled: __privateGet(this, _incomingTransactionOptions).isEnabled,
|
|
@@ -2550,4 +2551,4 @@ export {
|
|
|
2550
2551
|
ApprovalState,
|
|
2551
2552
|
TransactionController
|
|
2552
2553
|
};
|
|
2553
|
-
//# sourceMappingURL=chunk-
|
|
2554
|
+
//# sourceMappingURL=chunk-5GJ4USHK.mjs.map
|