pub enum ContractCreateResult {
Created(Address, U256),
Failed(Error),
Reverted(U256, ReturnData),
}
Expand description
Result of externalities create function.
Variants§
Created(Address, U256)
Returned when creation was successful. Contains an address of newly created contract and gas left.
Failed(Error)
Returned when contract creation failed. Returns the reason so block trace can record it.
Reverted(U256, ReturnData)
Reverted with REVERT.
Trait Implementations§
Auto Trait Implementations§
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