-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
54 additions
and
3 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
.yarn/patches/@metamask-transaction-controller-npm-45.0.0-010fef9da6.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
diff --git a/dist/TransactionController.cjs b/dist/TransactionController.cjs | ||
index c96d2962d81c4c63c7b626bc1ca18b196b20a154..236b451e5f94584d4ce42b6bfaf6b7225b8ae7f9 100644 | ||
--- a/dist/TransactionController.cjs | ||
+++ b/dist/TransactionController.cjs | ||
@@ -1152,7 +1152,11 @@ class TransactionController extends base_controller_1.BaseController { | ||
if (!isTxCompleted) { | ||
if (error?.code === rpc_errors_1.errorCodes.provider.userRejectedRequest) { | ||
this.cancelTransaction(transactionId, actionId); | ||
- throw rpc_errors_1.providerErrors.userRejectedRequest('MetaMask Tx Signature: User denied transaction signature.'); | ||
+ throw rpc_errors_1.providerErrors.userRejectedRequest({ | ||
+ message: | ||
+ 'MetaMask Tx Signature: User denied transaction signature.', | ||
+ data: error?.data, | ||
+ }); | ||
} | ||
else { | ||
this.failTransaction(meta, error, actionId); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters