trevm 0.33.1

A typestate API wrapper for the revm EVM implementation
Documentation
use revm::context::{BlockEnv, CfgEnv};

use crate::{Block, Cfg};

/// A no-op block filler.
#[derive(Debug, Clone, Copy)]
pub struct NoopBlock;

impl Block for NoopBlock {
    fn fill_block_env(&self, _: &mut BlockEnv) {}
}

/// A no-op configuration filler.
#[derive(Debug, Clone, Copy)]
pub struct NoopCfg;

impl Cfg for NoopCfg {
    fn fill_cfg_env(&self, _env: &mut CfgEnv) {}
}