bolt_lang/
errors.rs

1
2
3
4
5
6
7
8
9
10
11
use anchor_lang::prelude::*;

#[error_code]
pub enum BoltError {
    /// Returned if the wrong authority attempts to sign for an instruction
    #[msg("Invalid authority for instruction")]
    InvalidAuthority,
    /// Returned if the wrong authority attempts to sign for an instruction
    #[msg("Invalid caller: must be called from a CPI instruction")]
    InvalidCaller,
}