In the connectAndSign function throw many errors but one of them isnt getting caught. I have folloved same error handling structure throughout the function but only one error that is thrown by metamask api slips the catch. Does anyone have an idea?
const handleClick = async () => {
try {
await connectAndSign({ setData, setSigner, message, setSignature });
} catch (e: any) {
console.log(e.message);
toast(e.message);
}
};
I have no idea how an error doesnt get caught by try … catch wrapping it.