Skip to content

[N-04] Unhandled Error When User Cancels Transaction #67

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

Merged
merged 1 commit into from
Jun 19, 2025

Conversation

spennyp
Copy link
Contributor

@spennyp spennyp commented Jun 10, 2025

Address OZ N-04 by adding the error message "Transaction Cancelled." when users reject a wallet action. Note that this works for wallets which conform to EIP-1193 or include "user reject" in their error responses. Meaning this should work for be the majority of wallets with Family wallet via Wallet Connect being the only known exception.

This also improves all user facing errors from Viem by favoring shortMessage instead of message.

Screenshot 2025-06-09 at 19 18 27

Screenshot 2025-06-09 at 19 16 02

Copy link

vercel bot commented Jun 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
compound-blue ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 10, 2025 7:03am

@spennyp spennyp merged commit 9d4cf51 into oz-review Jun 19, 2025
2 checks passed
@spennyp spennyp deleted the audit-fix-n-04 branch June 19, 2025 18:14
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

Successfully merging this pull request may close these issues.

1 participant