When users submits transaction - we get a result and it is returned in then, but when transaction is rejected catch is not triggered, even though we get the error in the console.
The line mentioned in the error is this, but it is hard to figure out why it work the way it does.
When users submits transaction - we get a result and it is returned in
then
, but when transaction is rejectedcatch
is not triggered, even though we get the error in the console.The line mentioned in the error is this, but it is hard to figure out why it work the way it does.
I am using
"web3": "^4.2.2"
Pancake.swap handles it somehow, so there must be a way. Thanks for your tme!