Skip to content

Validation errors thrown instead of returned in ResultAsync #150

@mrcattington

Description

@mrcattington

Some errors come back as part of the ExecutionPlan (like InsufficientBalanceError), but others get thrown as InvariantError (like "user has no supply to withdraw").

This means I need both try-catch AND result checking to handle all cases. Would be cleaner if validation errors were returned via ResultAsync.Err instead of thrown.

Is this intentional?

Using @aave/client 0.9.2

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