Function ethers_core::utils::get_contract_address[][src]

pub fn get_contract_address(
    sender: impl Into<Address>,
    nonce: impl Into<U256>
) -> Address
Expand description

The address for an Ethereum contract is deterministically computed from the address of its creator (sender) and how many transactions the creator has sent (nonce). The sender and nonce are RLP encoded and then hashed with Keccak-256.