Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore checking the users nonce to safeguard against stale MM tx cache #64

Open
escottalexander opened this issue Dec 6, 2024 · 0 comments

Comments

@escottalexander
Copy link
Collaborator

Sometimes users have to start over and when they do they need to clear their MM wallet cache or else it thinks their nonce is higher than it should be. Their wallet will say that they have pending transactions right from the start. It is possible to get the users nonce with eth_getTransactionCount. If it doesn't line up with the transaction nonce we are about to request (this may be handled by the wallet as opposed to Wagmi in which case we will need to check their signed trasnaction for verification after handing it to them) then we show them a dialog with instructions on resetting the wallet cache and start them back from the beginning if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant