use reth_evm::execute::BlockExecutionError;
#[derive(thiserror::Error, Debug, Clone, PartialEq, Eq)]
pub enum OptimismBlockExecutionError {
#[error("could not get L1 block info from L2 block: {message:?}")]
L1BlockInfoError {
message: String,
},
#[error("failed to force create2deployer account code")]
ForceCreate2DeployerFail,
#[error("blob transaction included in sequencer block")]
BlobTransactionRejected,
#[error("failed to load account {0}")]
AccountLoadFailed(alloy_primitives::Address),
}
impl From<OptimismBlockExecutionError> for BlockExecutionError {
fn from(err: OptimismBlockExecutionError) -> Self {
Self::other(err)
}
}