You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem
I just encountered that after an unsuccessful transaction, the wallet did not redirect me back to the application. In my application, I would like to make the ability to "try again" with updated data so that a new transaction is more likely to be successful.
I mean that with a successful transaction, the user is redirected back to the application, but not with an unsuccessful transaction. The only way to go back to the application that he used to send this transaction is to press cancel, and then the user will be returned with the code user rejected & error text.
Is it possible to somehow return the user to the application even if the transaction fails?
Expected Behavior
Have an ability with some param in wallet method signAndSendTransaction(s) redirect user to application in case of failed transaction.
Steps to reproduce
Receive failed TX
Profit
The text was updated successfully, but these errors were encountered:
Yeah, redirecting user after clicking on "Cancel" works well, but...
I'm afraid that it may not be clear to the user what he needs to do in case of an error.
For me personally it was not obvious that in case of an error I should press "cancel".
It seems to me that to improve the UX of a Dapp, the error handles themselves should be handled and in order to implement this behavior, I want to ask you to add this feature (optional ability to redirect user to Dapp even in case of error).
Problem
I just encountered that after an unsuccessful transaction, the wallet did not redirect me back to the application. In my application, I would like to make the ability to "try again" with updated data so that a new transaction is more likely to be successful.
I mean that with a successful transaction, the user is redirected back to the application, but not with an unsuccessful transaction. The only way to go back to the application that he used to send this transaction is to press cancel, and then the user will be returned with the code user rejected & error text.
Is it possible to somehow return the user to the application even if the transaction fails?
Expected Behavior
Have an ability with some param in wallet method
signAndSendTransaction(s)
redirect user to application in case of failed transaction.Steps to reproduce
The text was updated successfully, but these errors were encountered: