@metamask-previews/transaction-controller 68.0.1-preview-4f334bd20 → 68.1.0-preview-eca6f2051
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 +8 -1
- package/dist/TransactionController.cjs +12 -19
- 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 +12 -19
- package/dist/TransactionController.mjs.map +1 -1
- package/dist/utils/provider.cjs +35 -3
- package/dist/utils/provider.cjs.map +1 -1
- package/dist/utils/provider.d.cts.map +1 -1
- package/dist/utils/provider.d.mts.map +1 -1
- package/dist/utils/provider.mjs +35 -3
- package/dist/utils/provider.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [68.1.0]
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Add RPC method, chain ID, and endpoint type context to transaction provider errors, including raw transaction submission failures ([#9144](https://github.com/MetaMask/core/pull/9144))
|
|
15
|
+
|
|
10
16
|
## [68.0.1]
|
|
11
17
|
|
|
12
18
|
### Fixed
|
|
@@ -2506,7 +2512,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
2506
2512
|
|
|
2507
2513
|
All changes listed after this point were applied to this package following the monorepo conversion.
|
|
2508
2514
|
|
|
2509
|
-
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@68.0
|
|
2515
|
+
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@68.1.0...HEAD
|
|
2516
|
+
[68.1.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@68.0.1...@metamask/transaction-controller@68.1.0
|
|
2510
2517
|
[68.0.1]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@68.0.0...@metamask/transaction-controller@68.0.1
|
|
2511
2518
|
[68.0.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@67.1.0...@metamask/transaction-controller@68.0.0
|
|
2512
2519
|
[67.1.0]: https://github.com/MetaMask/core/compare/@metamask/transaction-controller@67.0.0...@metamask/transaction-controller@67.1.0
|
|
@@ -1725,27 +1725,20 @@ async function _TransactionController_approveTransaction(transactionId, traceCon
|
|
|
1725
1725
|
clearNonceLock?.();
|
|
1726
1726
|
}
|
|
1727
1727
|
}, _TransactionController_publishTransaction = async function _TransactionController_publishTransaction(transactionMeta, { skipSubmitHistory } = {}) {
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
throw new Error('Missing raw transaction');
|
|
1732
|
-
}
|
|
1733
|
-
const transactionHash = (await (0, provider_1.rpcRequest)({
|
|
1734
|
-
messenger: this.messenger,
|
|
1735
|
-
networkClientId,
|
|
1736
|
-
method: 'eth_sendRawTransaction',
|
|
1737
|
-
params: [rawTx],
|
|
1738
|
-
}));
|
|
1739
|
-
if (skipSubmitHistory !== true) {
|
|
1740
|
-
__classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_updateSubmitHistory).call(this, transactionMeta, transactionHash);
|
|
1741
|
-
}
|
|
1742
|
-
return transactionHash;
|
|
1728
|
+
const { networkClientId, rawTx } = transactionMeta;
|
|
1729
|
+
if (!rawTx) {
|
|
1730
|
+
throw new Error('Missing raw transaction');
|
|
1743
1731
|
}
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1732
|
+
const transactionHash = (await (0, provider_1.rpcRequest)({
|
|
1733
|
+
messenger: this.messenger,
|
|
1734
|
+
networkClientId,
|
|
1735
|
+
method: 'eth_sendRawTransaction',
|
|
1736
|
+
params: [rawTx],
|
|
1737
|
+
}));
|
|
1738
|
+
if (skipSubmitHistory !== true) {
|
|
1739
|
+
__classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_updateSubmitHistory).call(this, transactionMeta, transactionHash);
|
|
1748
1740
|
}
|
|
1741
|
+
return transactionHash;
|
|
1749
1742
|
}, _TransactionController_rejectTransaction = function _TransactionController_rejectTransaction(transactionId, actionId, error) {
|
|
1750
1743
|
const transactionMeta = __classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_getTransaction).call(this, transactionId);
|
|
1751
1744
|
if (!transactionMeta) {
|