@metamask-previews/transaction-controller 42.0.0-preview-5eef594d → 42.0.0-preview-a283708e
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/dist/TransactionController.cjs +3 -2
- package/dist/TransactionController.cjs.map +1 -1
- package/dist/TransactionController.d.cts +1 -1
- package/dist/TransactionController.d.cts.map +1 -1
- package/dist/TransactionController.d.mts +1 -1
- package/dist/TransactionController.d.mts.map +1 -1
- package/dist/TransactionController.mjs +3 -2
- package/dist/TransactionController.mjs.map +1 -1
- package/dist/helpers/PendingTransactionTracker.cjs +3 -5
- package/dist/helpers/PendingTransactionTracker.cjs.map +1 -1
- package/dist/helpers/PendingTransactionTracker.d.cts +0 -1
- package/dist/helpers/PendingTransactionTracker.d.cts.map +1 -1
- package/dist/helpers/PendingTransactionTracker.d.mts +0 -1
- package/dist/helpers/PendingTransactionTracker.d.mts.map +1 -1
- package/dist/helpers/PendingTransactionTracker.mjs +3 -5
- package/dist/helpers/PendingTransactionTracker.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/* istanbul ignore file */
|
|
3
|
+
// FIXME - remove above ignore
|
|
2
4
|
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
5
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
6
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
@@ -1221,7 +1223,7 @@ class TransactionController extends base_controller_1.BaseController {
|
|
|
1221
1223
|
});
|
|
1222
1224
|
this.onTransactionStatusChange(transactionMeta);
|
|
1223
1225
|
const rawTx = await __classPrivateFieldGet(this, _TransactionController_trace, "f").call(this, { name: 'Sign', parentContext: traceContext }, () => this.signTransaction(transactionMeta, transactionMeta.txParams));
|
|
1224
|
-
if (!this.beforePublish(transactionMeta)) {
|
|
1226
|
+
if (!this.beforePublish(transactionMeta, rawTx)) {
|
|
1225
1227
|
(0, logger_1.projectLogger)('Skipping publishing transaction based on hook');
|
|
1226
1228
|
this.messagingSystem.publish(`${controllerName}:transactionPublishingSkipped`, transactionMeta);
|
|
1227
1229
|
return ApprovalState.SkippedViaBeforePublishHook;
|
|
@@ -1822,7 +1824,6 @@ _TransactionController_internalEvents = new WeakMap(), _TransactionController_me
|
|
|
1822
1824
|
}),
|
|
1823
1825
|
hooks: {
|
|
1824
1826
|
beforeCheckPendingTransaction: this.beforeCheckPendingTransaction.bind(this),
|
|
1825
|
-
beforePublish: this.beforePublish.bind(this),
|
|
1826
1827
|
},
|
|
1827
1828
|
});
|
|
1828
1829
|
__classPrivateFieldGet(this, _TransactionController_instances, "m", _TransactionController_addPendingTransactionTrackerListeners).call(this, pendingTransactionTracker);
|