Skip to main content

matches_contract_creation

Function matches_contract_creation 

Source
pub fn matches_contract_creation(
    contract: &ContractData,
    creation_code: &[u8],
) -> bool
Expand description

Very simple fuzzy matching of contract bytecode.

Returns a value between 0.0 (identical) and 1.0 (completely different). Returns whether creation_code is exactly this contract’s linked creation bytecode followed by a complete, canonically encoded constructor argument tuple.