Enum ethers_contract::ContractError [−][src]
pub enum ContractError<M: Middleware> {
DecodingError(Error),
AbiError(AbiError),
DetokenizationError(InvalidOutputType),
MiddlewareError(M::Error),
ProviderError(ProviderError),
ConstructorError,
ContractNotDeployed,
}Expand description
An Error which is thrown when interacting with a smart contract
Variants
Thrown when the ABI decoding fails
Thrown when the internal BaseContract errors
Tuple Fields of AbiError
0: AbiErrorThrown when detokenizing an argument
Tuple Fields of DetokenizationError
Thrown when a middleware call fails
Tuple Fields of MiddlewareError
0: M::ErrorThrown when a provider call fails
Tuple Fields of ProviderError
Thrown during deployment if a constructor argument was passed in the deploy
call but a constructor was not present in the ABI
Thrown if a contract address is not found in the deployment transaction’s receipt
Trait Implementations
Performs the conversion.