diff --git a/ethers-contract/src/contract.rs b/ethers-contract/src/contract.rs index 0ebb2559..5f417611 100644 --- a/ethers-contract/src/contract.rs +++ b/ethers-contract/src/contract.rs @@ -107,10 +107,12 @@ use std::{fmt::Debug, marker::PhantomData, sync::Arc}; /// ``` /// /// # Event Logging +/// /// Querying structured logs requires you to have defined a struct with the expected /// datatypes and to have implemented `Detokenize` for it. This boilerplate code /// is generated for you via the [`abigen`] and [`Abigen` builder] utilities. -/// +// +// Ignore because `ethers-contract-derive` macros do not work in doctests in `ethers-contract`. /// ```ignore /// # async fn foo() -> Result<(), Box> { /// use ethers_core::{abi::Abi, types::Address}; diff --git a/ethers-contract/src/event.rs b/ethers-contract/src/event.rs index 23864128..c050749e 100644 --- a/ethers-contract/src/event.rs +++ b/ethers-contract/src/event.rs @@ -133,8 +133,8 @@ where /// requests, and this is done on an interval basis. /// /// # Example - /// - /// ``` + // Ignore because `ethers-contract-derive` macros do not work in doctests in `ethers-contract`. + /// ```ignore /// # #[cfg(feature = "abigen")] /// # async fn test(contract: ethers_contract::Contract) { /// # use ethers_core::types::*; diff --git a/ethers-contract/src/stream.rs b/ethers-contract/src/stream.rs index d0f672d2..e258ea4c 100644 --- a/ethers-contract/src/stream.rs +++ b/ethers-contract/src/stream.rs @@ -75,8 +75,8 @@ where /// will be wrapped into the right-hand variant of that `Either`. /// /// # Example - /// - /// ``` + // Ignore because `ethers-contract-derive` macros do not work in doctests in `ethers-contract`. + /// ```ignore /// # #[cfg(feature = "abigen")] /// # async fn test(contract: ethers_contract::Contract) { /// # use ethers_core::types::*;