coinbase / coinbase/onchainkit

Feature Request: TransactionStatusLabel should show user friendly message for the common error cases/codes

Open
#962 2 comments 0 reactions 1 assignee Claimed by @abcrane123 View on GitHub
Dominant language
TypeScript
Stars
1k
Forks
520
Avg merge
32m
Merged PRs (30d)
2

Description

### Describe the solution you'd like

Right now, the **TransactionStatusLabel** and **TransactionStatusAction** components display the text "Something went wrong. Please try again." regardless of the type of error encountered.

It would be nice if it could be updated to automatically handle common error cases/codes, such as this error message when the account does not have enough ETH to cover the expected cost of gas + value for the transaction:

![Screenshot from 2024-07-31 15-06-35](https://github.com/user-attachments/assets/9ddd1d50-a0ac-4fc6-b111-6ba3ff58d486)

There's probably others too I'll run into as I use this more!

### Describe alternatives you've considered.

_No response_

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.