odra_modules/cep18/errors.rs
1use odra::prelude::OdraError;
2
3/// Error enum for the CEP-18 contract.
4#[odra::odra_error]
5pub enum Error {
6 /// Spender does not have enough balance.
7 InsufficientBalance = 60001,
8 /// Spender does not have enough allowance approved.
9 InsufficientAllowance = 60002,
10 /// The user cannot target themselves.
11 CannotTargetSelfUser = 60003
12}