From c637a3245b725dd67a22530e3ef34d95b34e4610 Mon Sep 17 00:00:00 2001 From: sevenzing <41516657+sevenzing@users.noreply.github.com> Date: Fri, 12 Jul 2024 12:31:24 +0200 Subject: [PATCH] delete: old middleware name --- Cargo.toml | 4 ++-- src/errors.rs | 2 +- src/reader.rs | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 52da648..5ad47cf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" @@ -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", diff --git a/src/errors.rs b/src/errors.rs index 63e9bdf..aed9578 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -26,7 +26,7 @@ pub struct CCIPFetchError(pub(crate) HashMap>); /// 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), diff --git a/src/reader.rs b/src/reader.rs index d59ff26..e7c152e 100644 --- a/src/reader.rs +++ b/src/reader.rs @@ -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() } @@ -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, @@ -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))]