From b47c89455c5c12875ab67a620a5060c58d128a87 Mon Sep 17 00:00:00 2001 From: Georgios Konstantopoulos Date: Wed, 3 Jun 2020 00:16:08 +0300 Subject: [PATCH] ci: skip tests with external deps --- .circleci/config.yml | 3 ++- ethers-core/src/types/chainstate/log.rs | 3 +-- ethers/src/lib.rs | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8b5d1a8f..cc4df9bb 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -49,7 +49,8 @@ jobs: - setup-lints - setup-sccache - restore-sccache-cache - - run: cargo test --all + # skip these temporarily until we get ganache-cli and solc on CI + - run: cargo test --all -- --skip deploy_and_call_contract --skip send_eth - run: name: Check style command: | diff --git a/ethers-core/src/types/chainstate/log.rs b/ethers-core/src/types/chainstate/log.rs index 6d03e561..550f8346 100644 --- a/ethers-core/src/types/chainstate/log.rs +++ b/ethers-core/src/types/chainstate/log.rs @@ -219,8 +219,7 @@ mod tests { .topic1(t1) .topic2(t3); - dbg!(&filter); let ser = serialize(&filter).to_string(); - assert_eq!(ser, "{\"address\":\"0xf817796f60d268a36a57b8d2df1b97b14c0d0e1d\",\"topics\":[\"0xe826f71647b8486f2bae59832124c70792fba044036720a54ec8dacdd5df4fcb\",\"0x0000000000000000000000009729a6fbefefc8f6005933898b13dc45c3a2c8b7\",\"0x000000000000000000000000000000000000000000000000000000000000007b\"]}"); + assert_eq!(ser, "{\"address\":\"0xf817796f60d268a36a57b8d2df1b97b14c0d0e1d\",\"topics\":[\"0xe826f71647b8486f2bae59832124c70792fba044036720a54ec8dacdd5df4fcb\",\"0x0000000000000000000000009729a6fbefefc8f6005933898b13dc45c3a2c8b7\",\"0x000000000000000000000000000000000000000000000000000000000000007b\",null]}"); } } diff --git a/ethers/src/lib.rs b/ethers/src/lib.rs index 25eec3a3..d422f81a 100644 --- a/ethers/src/lib.rs +++ b/ethers/src/lib.rs @@ -45,12 +45,12 @@ pub mod contract { /// network type and override the provider's ENS address with the `ens` method. /// /// ```rust -/// use ethers::providers::{HttpProvider, networks::Any}; +/// use ethers::providers::{Provider, Http}; /// use std::convert::TryFrom; /// use tokio::runtime::Runtime; /// -/// let provider = HttpProvider::::try_from( -/// "https://mainnet.infura.io/v3/9408f47dedf04716a03ef994182cf150" +/// let provider = Provider::::try_from( +/// "https://mainnet.infura.io/v3/c60b0bb42f8a4c6481ecd229eddaca27" /// ).unwrap(); /// /// // Since this is an async function, we need to run it from an async runtime, @@ -68,11 +68,11 @@ pub mod contract { /// follows: /// /// ```rust -/// # use ethers::providers::{HttpProvider, networks::Mainnet}; +/// # use ethers::providers::{Provider, Http}; /// # use std::convert::TryFrom; /// # use tokio::runtime::Runtime; -/// # let provider = HttpProvider::::try_from( -/// # "https://mainnet.infura.io/v3/9408f47dedf04716a03ef994182cf150" +/// # let provider = Provider::::try_from( +/// # "https://mainnet.infura.io/v3/c60b0bb42f8a4c6481ecd229eddaca27" /// # ).unwrap(); /// # let mut runtime = Runtime::new().expect("Failed to create Tokio runtime"); /// // Resolve ENS name to Address