INNER CODE UNIT · Rust
get_client
fuzzland/ityfuzz · src/evm/blaz/mod.rs:18
fn get_client() -> reqwest::blocking::Client {
reqwest::blocking::Client::builder()
.timeout(Duration::from_secs(20))
.build()
.expect("build client failed")
}
/// In this, we'll just check all push4
/// Hay = longer contract, with constructor args
/// Needle = shorter contract, without constructor args
pub fn is_bytecode_similar_lax(hay: Vec<u8>, needle: Vec<u8>) -> usize {
skip_cbor!({
let push4_hay: HashSet<_> = extract_sig_from_contract(hex::encode(hay).as_str())
.iter()
.cloned()
.collect();
let push4_needle: HashSet<_> = extract_sig_from_contract(hex::encode(needle).as_str())
.iter()