INNER CODE UNIT · Rust

load_bytecode

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

    fn load_bytecode(path: &str) -> Bytecode {
        let hex_code = fs::read_to_string(path).expect("bytecode not found").trim().to_string();
        let bytecode = hex::decode(hex_code).unwrap();
        Bytecode::new_raw(Bytes::from(bytecode))
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…