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

Submitting an Invalid Transaction Provides Two Error Responses #282

Open
onlyluck77 opened this issue Jan 23, 2023 · 0 comments
Open

Submitting an Invalid Transaction Provides Two Error Responses #282

onlyluck77 opened this issue Jan 23, 2023 · 0 comments

Comments

@onlyluck77
Copy link

onlyluck77 commented Jan 23, 2023

Submitting a transaction with an invalid method name or argument name results in two error messages being returned to the 'lamdenWalletTxStatus" event listener. This makes it more difficult for the developer perform error handling and inform the user the status of their request. Both the events contain same information, but it is laid out differently (see attached files).

As a work around I could ignore the second event with the "detail.data.txBlockResult.errors" attribute as it is not common to the tx errored to send tx events, but I wanted to check if this was by design and if there is something I am missing.

argument_error2.txt
argument_error1.txt
method_error2.txt
method_error1.txt

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