Enum ethcore::CreateContractAddress []

pub enum CreateContractAddress {
    FromSenderAndNonce,
    FromCodeHash,
    FromSenderAndCodeHash,
}

Specifies how an address is calculated for a new contract.

Variants

Address is calculated from nonce and sender. Pre EIP-86 (Metropolis)

Address is calculated from code hash. Default since EIP-86

Address is calculated from code hash and sender. Used by CREATE_P2SH instruction.

Trait Implementations

impl Copy for CreateContractAddress

impl Clone for CreateContractAddress

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for CreateContractAddress

impl PartialEq<CreateContractAddress> for CreateContractAddress

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for CreateContractAddress

impl Sync for CreateContractAddress