git.delta.rocks / unique-network / refs/commits / 50b15345cfd5

difftreelog

source

crates/evm-coder/src/execution.rs422 Bsourcehistory
1#[cfg(not(feature = "std"))]2use alloc::string::{String, ToString};3use evm_core::{ExitError, ExitFatal};4#[cfg(feature = "std")]5use std::string::{String, ToString};67#[derive(Debug)]8pub enum Error {9	Revert(String),10	Fatal(ExitFatal),11	Error(ExitError),12}1314impl<E> From<E> for Error15where16	E: ToString,17{18	fn from(e: E) -> Self {19		Self::Revert(e.to_string())20	}21}2223pub type Result<T> = core::result::Result<T, Error>;