Skip to main content

create2_hash_address_word

Function create2_hash_address_word 

Source
fn create2_hash_address_word(
    cx: &mut SymCx,
    deployer: Address,
    salt: SymExpr,
    init_code_hash: B256,
) -> SymExpr
Expand description

Builds keccak256(0xff ++ deployer ++ salt ++ init_code_hash) cut to an address.

The bytes match abi.encodePacked of the same values, so a test that predicts the address hashes the same preimage and the Keccak equality rewrite relates both.