Skip to content

PythError doesn't support Anchor #73

Closed
@yhzhang0128

Description

@yhzhang0128

In pyth-sdk-solana, there is a function converting PythError to ProgramError defined in the solana_program crate. However, there is no conversion to Error defined in the anchor_lang crate, making it a bit difficult to handle error in contracts written with Anchor.

Ali suggested me opening an issue here for improvement.

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