revm_optimism/
result.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
use revm::context_interface::result::HaltReason;

#[derive(Clone, Debug, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum OptimismHaltReason {
    Base(HaltReason),
    FailedDeposit,
}

impl From<HaltReason> for OptimismHaltReason {
    fn from(value: HaltReason) -> Self {
        Self::Base(value)
    }
}