Hi all!
The problem is this:
I have a function that calls a metamask at the end, and then makes a promise and returns a hash. But, if an error occurs during the execution of the function, then I still need to get a response, at least in the form of an empty object.
To do this, I wrapped the body of the function in a trycatch, where in catch, if I catch an error, then I send an empty object.
Everything seems to be fine, but there is one cant: if the user rejects the transaction (Reject) in the metamask, then everything breaks. It turns out that reject the metamask above trycatch
what to do? Tell me who knows
Jul 4, 2022, 12:27 PM