Skip to content

Submitting an Invalid Transaction Provides Two Error Responses #282

@onlyluck77

Description

@onlyluck77

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions