pub enum CreateContractAddress {
FromSenderAndNonce,
FromSenderSaltAndCodeHash(H256),
FromSenderAndCodeHash,
}
Expand description
Specifies how an address is calculated for a new contract.
Variants§
FromSenderAndNonce
Address is calculated from sender and nonce. tWASM create
scheme.
FromSenderSaltAndCodeHash(H256)
Address is calculated from sender, salt and code hash. tWASM create2
scheme and EIP-1014 CREATE2 scheme.
FromSenderAndCodeHash
Address is calculated from code hash and sender. Used by twasm create ext.
Trait Implementations§
Source§impl Clone for CreateContractAddress
impl Clone for CreateContractAddress
Source§fn clone(&self) -> CreateContractAddress
fn clone(&self) -> CreateContractAddress
Returns a duplicate 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 CreateContractAddress
impl Debug for CreateContractAddress
Source§impl Hash for CreateContractAddress
impl Hash for CreateContractAddress
Source§impl PartialEq for CreateContractAddress
impl PartialEq for CreateContractAddress
impl Copy for CreateContractAddress
impl Eq for CreateContractAddress
impl StructuralPartialEq for CreateContractAddress
Auto Trait Implementations§
impl Freeze for CreateContractAddress
impl RefUnwindSafe for CreateContractAddress
impl Send for CreateContractAddress
impl Sync for CreateContractAddress
impl Unpin for CreateContractAddress
impl UnwindSafe for CreateContractAddress
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