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
After connection approval, our code triggers watchAsset for token import approval.
However, the user is not redirected back to MetaMask for the second approval when returning to the website.
I suspect that the approval flow might be impacted by the timing or event handling during the WalletConnect connection process. Despite attempting to trigger watchAsset with a delay of 10 seconds using a timeout, the issue persists.
Interestingly, if I manually click on the button triggering the import token function while being connected via walletConnect, it successfully redirects me to MetaMask for token import approval.
Could you provide insights or recommendations in scenarios where manual triggering succeeds but automatic triggering encounters issues?
Are there any specific considerations or best practices in viem for handling sequential approval steps after a WalletConnect connection?
Any guidance or insights you can provide would be greatly appreciated.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
Here's a brief overview of the problem:
I suspect that the approval flow might be impacted by the timing or event handling during the WalletConnect connection process. Despite attempting to trigger watchAsset with a delay of 10 seconds using a timeout, the issue persists.
Interestingly, if I manually click on the button triggering the import token function while being connected via walletConnect, it successfully redirects me to MetaMask for token import approval.
Could you provide insights or recommendations in scenarios where manual triggering succeeds but automatic triggering encounters issues?
Are there any specific considerations or best practices in viem for handling sequential approval steps after a WalletConnect connection?
Any guidance or insights you can provide would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions