fix(contract): doctests (#2007)
This commit is contained in:
parent
71fbf8c6b6
commit
24b9ae2404
|
@ -107,10 +107,12 @@ use std::{fmt::Debug, marker::PhantomData, sync::Arc};
|
||||||
/// ```
|
/// ```
|
||||||
///
|
///
|
||||||
/// # Event Logging
|
/// # Event Logging
|
||||||
|
///
|
||||||
/// Querying structured logs requires you to have defined a struct with the expected
|
/// Querying structured logs requires you to have defined a struct with the expected
|
||||||
/// datatypes and to have implemented `Detokenize` for it. This boilerplate code
|
/// datatypes and to have implemented `Detokenize` for it. This boilerplate code
|
||||||
/// is generated for you via the [`abigen`] and [`Abigen` builder] utilities.
|
/// 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
|
/// ```ignore
|
||||||
/// # async fn foo() -> Result<(), Box<dyn std::error::Error>> {
|
/// # async fn foo() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
/// use ethers_core::{abi::Abi, types::Address};
|
/// use ethers_core::{abi::Abi, types::Address};
|
||||||
|
|
|
@ -133,8 +133,8 @@ where
|
||||||
/// requests, and this is done on an interval basis.
|
/// requests, and this is done on an interval basis.
|
||||||
///
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
///
|
// Ignore because `ethers-contract-derive` macros do not work in doctests in `ethers-contract`.
|
||||||
/// ```
|
/// ```ignore
|
||||||
/// # #[cfg(feature = "abigen")]
|
/// # #[cfg(feature = "abigen")]
|
||||||
/// # async fn test<M:ethers_providers::Middleware>(contract: ethers_contract::Contract<M>) {
|
/// # async fn test<M:ethers_providers::Middleware>(contract: ethers_contract::Contract<M>) {
|
||||||
/// # use ethers_core::types::*;
|
/// # use ethers_core::types::*;
|
||||||
|
|
|
@ -75,8 +75,8 @@ where
|
||||||
/// will be wrapped into the right-hand variant of that `Either`.
|
/// will be wrapped into the right-hand variant of that `Either`.
|
||||||
///
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
///
|
// Ignore because `ethers-contract-derive` macros do not work in doctests in `ethers-contract`.
|
||||||
/// ```
|
/// ```ignore
|
||||||
/// # #[cfg(feature = "abigen")]
|
/// # #[cfg(feature = "abigen")]
|
||||||
/// # async fn test<M:ethers_providers::Middleware>(contract: ethers_contract::Contract<M>) {
|
/// # async fn test<M:ethers_providers::Middleware>(contract: ethers_contract::Contract<M>) {
|
||||||
/// # use ethers_core::types::*;
|
/// # use ethers_core::types::*;
|
||||||
|
|
Loading…
Reference in New Issue