pub enum DeployError {
Web3(Error),
NotFound(String),
Link(LinkError),
EmptyBytecode,
Abi(Error),
Tx(ExecutionError),
Pending(H256),
}Expand description
Error that can occur while locating a deployed contract.
Variants§
Web3(Error)
An error occured while performing a web3 call.
NotFound(String)
No previously deployed contract could be found on the network being used
by the current web3 provider.
Link(LinkError)
Error linking a contract with a deployed library.
EmptyBytecode
Attempted to deploy a contract when empty bytecode. This can happen when attempting to deploy a contract that is actually an interface.
Abi(Error)
An error occured encoding deployment parameters with the contract ABI.
Tx(ExecutionError)
Error executing contract deployment transaction.
Pending(H256)
Transaction was unable to confirm and is still pending. The contract address cannot be determined.
Trait Implementations§
Source§impl Debug for DeployError
impl Debug for DeployError
Source§impl Display for DeployError
impl Display for DeployError
Source§impl Error for DeployError
impl Error for DeployError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for DeployError
impl From<Error> for DeployError
Source§impl From<Error> for DeployError
impl From<Error> for DeployError
Source§impl From<ExecutionError> for DeployError
impl From<ExecutionError> for DeployError
Source§fn from(source: ExecutionError) -> Self
fn from(source: ExecutionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DeployError
impl !RefUnwindSafe for DeployError
impl Send for DeployError
impl Sync for DeployError
impl Unpin for DeployError
impl !UnwindSafe for DeployError
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