odra-modules 2.8.0

Collection of reusable Odra modules.
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Errors implementation for the security module.
use odra::prelude::OdraError;

/// Errors for the security module.
#[odra::odra_error]
pub enum Error {
    /// Contract needs to be paused first.
    PausedRequired = 21_000,
    /// Contract needs to be unpaused first.
    UnpausedRequired = 21_001
}