plonky2/evm/src/witness/errors.rs
2023-09-12 19:23:16 -04:00

26 lines
519 B
Rust

use ethereum_types::U256;
#[allow(dead_code)]
#[derive(Debug)]
pub enum ProgramError {
OutOfGas,
InvalidOpcode,
StackUnderflow,
InvalidJumpDestination,
InvalidJumpiDestination,
StackOverflow,
KernelPanic,
MemoryError(MemoryError),
GasLimitError,
InterpreterError,
IntegerTooLarge,
}
#[allow(clippy::enum_variant_names)]
#[derive(Debug)]
pub enum MemoryError {
ContextTooLarge { context: U256 },
SegmentTooLarge { segment: U256 },
VirtTooLarge { virt: U256 },
}