@metamask-previews/transaction-controller 42.0.0-preview-5eef594d → 42.0.0-preview-e335bd17
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 -1
- package/dist/TransactionController.cjs.map +1 -1
- package/dist/TransactionController.d.cts +62 -2
- package/dist/TransactionController.d.cts.map +1 -1
- package/dist/TransactionController.d.mts +62 -2
- package/dist/TransactionController.d.mts.map +1 -1
- package/dist/TransactionController.mjs +3 -1
- package/dist/TransactionController.mjs.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +8 -0
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.mts +8 -0
- package/dist/types.d.mts.map +1 -1
- package/dist/types.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -625,7 +625,6 @@ class TransactionController extends base_controller_1.BaseController {
|
|
|
625
625
|
this.onTransactionStatusChange(updatedTransactionMeta);
|
|
626
626
|
// Intentional given potential duration of process.
|
|
627
627
|
this.updatePostBalance(updatedTransactionMeta).catch((error) => {
|
|
628
|
-
/* istanbul ignore next */
|
|
629
628
|
(0, logger_1.projectLogger)('Error while updating post balance', error);
|
|
630
629
|
throw error;
|
|
631
630
|
});
|
|
@@ -862,6 +861,9 @@ class TransactionController extends base_controller_1.BaseController {
|
|
|
862
861
|
if (!transactionMeta) {
|
|
863
862
|
throw new Error(`Cannot update custodial transaction as no transaction metadata found`);
|
|
864
863
|
}
|
|
864
|
+
if (!transactionMeta.custodyId) {
|
|
865
|
+
throw new Error('Transaction must be a custodian transaction');
|
|
866
|
+
}
|
|
865
867
|
if (status &&
|
|
866
868
|
![
|
|
867
869
|
types_1.TransactionStatus.submitted,
|