INNER CODE UNIT · Rust
on_step
fuzzland/ityfuzz · src/evm/middlewares/cheatcode/mod.rs:104
unsafe fn on_step(&mut self, interp: &mut Interpreter, host: &mut FuzzHost<SC>, _state: &mut EVMFuzzState) {
let op = interp.current_opcode();
match get_opcode_type(op, interp) {
OpcodeType::CheatCall => self.cheat_call(interp, host),
OpcodeType::RealCall => self.real_call(interp, &mut host.expected_calls),
OpcodeType::Storage => self.record_accesses(interp),
OpcodeType::Log => self.log(interp, &mut host.expected_emits),
_ => (),
}
}
fn get_type(&self) -> MiddlewareType {
MiddlewareType::Cheatcode
}
fn as_any(&self) -> &dyn std::any::Any {
self
}