blueprint_client_evm/
error.rs1use blueprint_std::string::String;
2use thiserror::Error;
3
4#[derive(Debug, Error)]
5pub enum Error {
6 #[error("Provider error: {0}")]
7 Provider(String),
8 #[error("Invalid address: {0}")]
9 InvalidAddress(String),
10 #[error("Transaction error: {0}")]
11 Transaction(String),
12 #[error("Contract error: {0}")]
13 Contract(String),
14 #[error("ABI error: {0}")]
15 Abi(String),
16}
17
18impl From<Error> for blueprint_client_core::error::Error {
19 fn from(value: Error) -> Self {
20 blueprint_client_core::error::Error::Evm(value.to_string())
21 }
22}
23
24pub type Result<T> = blueprint_std::result::Result<T, Error>;