Function ethers_core::utils::get_create2_address
source · pub fn get_create2_address(
from: impl Into<Address>,
salt: impl Into<Bytes>,
init_code: impl Into<Bytes>
) -> Address
Expand description
Returns the CREATE2 address of a smart contract as specified in EIP1014
keccak256( 0xff ++ senderAddress ++ salt ++ keccak256(init_code))[12..]