INNER CODE UNIT · Rust

test_foundry_contract

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

    fn test_foundry_contract() {
        logger::init_test();

        let mut state: EVMFuzzState = FuzzState::new(0);

        // Reverter.sol: tests/presets/cheatcode/Reverter.sol
        let reverter_addr = B160::from_str("0xaAbeB5BA46709f61CFd0090334C6E71513ED7BCf").unwrap();
        let reverter_code = load_bytecode("tests/presets/cheatcode/Reverter.bytecode");

        // Emitter.sol: tests/presets/cheatcode/Emitter.sol
        let emitter_addr = B160::from_str("0xC6829a4b1a9bCCc842387F223dd2bC5FA50fd9eD").unwrap();
        let emitter_code = load_bytecode("tests/presets/cheatcode/Emitter.bytecode");

        // Caller.sol: tests/presets/cheatcode/Caller.sol
        let caller_addr = B160::from_str("0xBE8d2A52f21dce4b17Ec809BCE76cb403BbFbaCE").unwrap();
        let caller_code = load_bytecode("tests/presets/cheatcode/Caller.bytecode");

        // Cheatcode.t.sol: tests/presets/cheatcode/Cheatcode.t.sol

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…