Function ethers::core::utils::get_create2_address[][src]

pub fn get_create2_address(
    from: impl Into<H160>,
    salt: impl Into<Bytes>,
    init_code: impl Into<Bytes>
) -> H160
Expand description

Returns the CREATE2 address of a smart contract as specified in EIP1014

keccak256( 0xff ++ senderAddress ++ salt ++ keccak256(init_code))[12..]