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

pub fn get_contract_address(
    sender: impl Into<H160>,
    nonce: impl Into<U256>
) -> H160
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.