Skip to content

Commit

Permalink
delete: old middleware name
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenzing committed Jul 12, 2024
1 parent e297f24 commit c637a32
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "alloy-ccip-read"
version = "0.1.1"
version = "0.1.0"
authors = ["Lev Lymarenko its@llev.me"]
license = "MIT"
edition = "2018"
Expand All @@ -9,7 +9,7 @@ repository = "https://github.com/sevenzing/alloy-ccip-read"
homepage = "https://github.com/sevenzing/alloy-ccip-read"
keywords = ["ens", "alloy", "ccip-read", "offchain-resolver", "l2-resolver"]
description = """
CCIP-Read middleware for alloy-rs
CCIP-Reader for alloy-rs
"""
exclude = [
".github",
Expand Down
2 changes: 1 addition & 1 deletion src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub struct CCIPFetchError(pub(crate) HashMap<String, Vec<String>>);
/// Handle CCIP-Read middlware specific errors.
#[derive(Error, Debug)]
pub enum CCIPReaderError {
/// Thrown when the internal middleware errors
/// Thrown when the internal errors
#[error("{0}")]
Internal(anyhow::Error),

Expand Down
8 changes: 4 additions & 4 deletions src/reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,8 @@ where
CCIPReaderBuilder::default()
}

/// Creates an instance of CCIPReadMiddleware
/// `ìnner` the inner Middleware
/// Creates an instance of CCIPReader
/// `ìnner` the inner Provider
pub fn new(inner: P) -> Self {
Self::builder().with_provider(inner).build().unwrap()
}
Expand All @@ -122,7 +122,7 @@ where
self.call_ccip(tx).await.map(|(result, _)| result)
}

/// Call the underlying middleware with the provided transaction and block,
/// Perform eth_call with tx, and handle CCIP requests if needed
/// returning both the result of the call and the CCIP requests made during the call
pub async fn call_ccip(
&self,
Expand Down Expand Up @@ -337,7 +337,7 @@ where
}
}

// // TODO: add all the methods from ethers-rs
// // TODO: add all the methods from ethers-ccip-read

// /// Middleware implementation for CCIPReadMiddleware
// #[cfg_attr(target_arch = "wasm32", async_trait(?Send))]
Expand Down

0 comments on commit c637a32

Please sign in to comment.