foundry_evm_coverage::inspector

Function get_contract_hash

Source
fn get_contract_hash(interp: &mut Interpreter) -> B256
Expand description

Helper function for extracting contract hash used to record coverage hit map. If contract hash available in interpreter contract is zero (contract not yet created but going to be created in current tx) then it hash is calculated from contract bytecode.