pub enum ContractCreateResult {
Created(Address, U256),
Failed,
Reverted(U256, ReturnData),
}
Expand description
Result of externalities create function.
Variants§
Created(Address, U256)
Returned when creation was successfull. Contains an address of newly created contract and gas left.
Failed
Returned when contract creation failed. VM doesn’t have to know the reason.
Reverted(U256, ReturnData)
Reverted with REVERT.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ContractCreateResult
impl RefUnwindSafe for ContractCreateResult
impl Send for ContractCreateResult
impl Sync for ContractCreateResult
impl Unpin for ContractCreateResult
impl UnwindSafe for ContractCreateResult
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