[][src]Function ethers_core::utils::get_create2_address

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

Returns the CREATE2 of a smart contract as specified in EIP1014

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