INNER CODE UNIT · Rust

new

fuzzland/ityfuzz · src/evm/middlewares/cheatcode/mod.rs:128

    pub fn new(etherscan_api_key: &str) -> Self {
        Self {
            accesses: None,
            recorded_logs: None,
            etherscan_api_key: etherscan_api_key.split(',').map(|s| s.to_string()).collect(),
            labels: HashMap::new(),
            _phantom: PhantomData,
        }
    }

    /// Call cheatcode address
    pub fn cheat_call(&mut self, interp: &mut Interpreter, host: &mut FuzzHost<SC>) {
        let op = interp.current_opcode();
        let calldata = unsafe { pop_cheatcall_stack(interp, op) };
        if let Err(err) = calldata {
            cheat_call_error!(interp, err);
        }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…