Skip to content

Feature request: Add require and error_code equivalent of anchor #253

@0xzrf

Description

@0xzrf

Motivation

After writing some programs in pinocchio, I realised that there's a redundancy to check specific requirements, e.g. checking whether a account is a signer

I think it's best if there's a helper function like require that checks these requirements, and a error_code equivalent of anchor to allow for custom errors

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