pub enum CreateContractAddressType {
FromSenderNonce,
FromSenderNonceAndCodeHash,
FromBlockNumberSenderNonceAndCodeHash,
FromSenderSaltAndCodeHash(H256),
}
Expand description
Specifies how an address is calculated for a new contract.
Variants§
FromSenderNonce
Address is calculated from sender and nonce. Ethereum
create
scheme.
FromSenderNonceAndCodeHash
Address is calculated from sender, nonce, and code hash. Conflux
create
scheme.
FromBlockNumberSenderNonceAndCodeHash
Address is calculated from block_hash, sender, nonce and code_hash.
Potential new Conflux create
scheme when kill_dust is enabled.
FromSenderSaltAndCodeHash(H256)
Address is calculated from sender, salt and code hash. Conflux and
Ethereum create2
scheme.
Trait Implementations§
source§impl Clone for CreateContractAddressType
impl Clone for CreateContractAddressType
source§fn clone(&self) -> CreateContractAddressType
fn clone(&self) -> CreateContractAddressType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CreateContractAddressType
impl Debug for CreateContractAddressType
source§impl Hash for CreateContractAddressType
impl Hash for CreateContractAddressType
source§impl PartialEq for CreateContractAddressType
impl PartialEq for CreateContractAddressType
source§fn eq(&self, other: &CreateContractAddressType) -> bool
fn eq(&self, other: &CreateContractAddressType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CreateContractAddressType
impl Eq for CreateContractAddressType
impl StructuralPartialEq for CreateContractAddressType
Auto Trait Implementations§
impl RefUnwindSafe for CreateContractAddressType
impl Send for CreateContractAddressType
impl Sync for CreateContractAddressType
impl Unpin for CreateContractAddressType
impl UnwindSafe for CreateContractAddressType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more