From 55cc919535dc50e9a88ae8c7376f1bbfd0331d07 Mon Sep 17 00:00:00 2001 From: nicolasito1411 <60229704+Marchand-Nicolas@users.noreply.github.com> Date: Wed, 17 Jul 2024 19:31:02 +0200 Subject: [PATCH] showing errors in console --- hooks/paymaster.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hooks/paymaster.tsx b/hooks/paymaster.tsx index beab1af6..afe536dc 100644 --- a/hooks/paymaster.tsx +++ b/hooks/paymaster.tsx @@ -115,7 +115,10 @@ const usePaymaster = ( "pending", true ) - .catch(() => setInvalidTx(true)); + .catch((e) => { + console.error(e); + setInvalidTx(true); + }); }, [provider] );