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

#[error_code]
pub enum HplCompressionError {
    #[msg("Tree provided in context is not active at the moment")]
    TreeNotActive,

    #[msg("Tree does not have any capacity to add more leaves")]
    TreeFull,

    #[msg("Active tree does not exist")]
    ActiveTreeNotFound,
}