trevm/fill/
noop.rs

1use revm::context::{BlockEnv, CfgEnv};
2
3use crate::{Block, Cfg};
4
5/// A no-op block filler.
6#[derive(Debug, Clone, Copy)]
7pub struct NoopBlock;
8
9impl Block for NoopBlock {
10    fn fill_block_env(&self, _: &mut BlockEnv) {}
11}
12
13/// A no-op configuration filler.
14#[derive(Debug, Clone, Copy)]
15pub struct NoopCfg;
16
17impl Cfg for NoopCfg {
18    fn fill_cfg_env(&self, _: &mut CfgEnv) {}
19}