errors.rs 376 B

1234567891011
  1. use anchor_lang::prelude::*;
  2. #[error_code]
  3. pub enum BoltError {
  4. /// Returned if the wrong authority attempts to sign for an instruction
  5. #[msg("Invalid authority for instruction")]
  6. InvalidAuthority,
  7. /// Returned if the wrong authority attempts to sign for an instruction
  8. #[msg("Invalid caller: must be called from a CPI instruction")]
  9. InvalidCaller,
  10. }