pub fn get_create2_address(
    from: impl Into<Address>,
    salt: impl AsRef<[u8]>,
    init_code: impl AsRef<[u8]>
) -> Address
Expand description

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

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