@metamask-previews/transaction-controller 46.0.0-preview-e2b3b183 → 46.0.0-preview-de5d7291
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 +4 -1
- 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 +4 -1
- package/dist/TransactionController.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1217,7 +1217,10 @@ class TransactionController extends base_controller_1.BaseController {
|
|
|
1217
1217
|
if (!isTxCompleted) {
|
|
1218
1218
|
if (error?.code === rpc_errors_1.errorCodes.provider.userRejectedRequest) {
|
|
1219
1219
|
this.cancelTransaction(transactionId, actionId);
|
|
1220
|
-
throw rpc_errors_1.providerErrors.userRejectedRequest(
|
|
1220
|
+
throw rpc_errors_1.providerErrors.userRejectedRequest({
|
|
1221
|
+
message: 'MetaMask Tx Signature: User denied transaction signature.',
|
|
1222
|
+
data: error?.data,
|
|
1223
|
+
});
|
|
1221
1224
|
}
|
|
1222
1225
|
else {
|
|
1223
1226
|
this.failTransaction(meta, error, actionId);
|