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

sendAndConfirmWithRetry doesn't return useful information if transaction is not successful #357

Open
greenbreakfast opened this issue Aug 3, 2023 · 0 comments

Comments

@greenbreakfast
Copy link

Context:
At Smart Harvest, an approved third party manufacturer of hotspots, we've built a web app for our users to onboard their hotspots. We're using the sendAndConfirmWithRetry function from the spl-utils package in this repo to submit transactions to Solana.

The Issue:
When the transactions are successful everything is fine. But there are some cases where the transaction will fail, like if the hotspot is already onboarded, not enough SOL or DC available, etc.

If the transaction fails, we don't get any useful information back from the sendAndConfirmWithRetry function. Not even the transaction id.

We see an error message is logged inside the library:
image

But this error isn't passed back to our app. We can only catch this:
image

Our request:
Could you please update sendAndConfirmWithRetry to return the transaction id and a more helpful error message if the transaction is not successful?

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