Skip to content

Add option not to throw exception on tecHOOK_REJECTED. #44

@tequdev

Description

@tequdev

If you add an option to Xrpld.submit not to throw an exception even if the result code is tecHOOK_REJECTED, you can add tecHOOK_REJECTED to test cases and write safer Hook code when you use jest.

like

Xrpld.submit(testContext.client, {
      tx: {...},
      wallet: testContext.alice,
},
{
    allowHookRejected: true
}
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions