From ec0cf0e8ef1171f3ac5a07b44ca9e944e8139f19 Mon Sep 17 00:00:00 2001 From: DaniPopes <57450786+DaniPopes@users.noreply.github.com> Date: Sat, 25 Feb 2023 15:12:16 +0100 Subject: [PATCH] fix: contract tests --- ethers-contract/Cargo.toml | 6 ++++-- ethers-contract/tests/it/contract_call.rs | 3 +-- ethers-contract/tests/it/derive.rs | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ethers-contract/Cargo.toml b/ethers-contract/Cargo.toml index 97669bc7..d884690d 100644 --- a/ethers-contract/Cargo.toml +++ b/ethers-contract/Cargo.toml @@ -45,9 +45,11 @@ tokio = { version = "1.18", default-features = false, features = ["macros"] } default = ["abigen"] eip712 = ["ethers-derive-eip712", "ethers-core/eip712"] -abigen = ["ethers-contract-abigen/reqwest", "ethers-contract-derive"] + abigen-offline = ["ethers-contract-abigen", "ethers-contract-derive"] -celo = ["legacy", "ethers-core/celo", "ethers-core/celo", "ethers-providers/celo"] +abigen = ["abigen-offline", "ethers-contract-abigen/online"] + +celo = ["legacy", "ethers-core/celo", "ethers-providers/celo"] legacy = [] rustls = ["ethers-contract-abigen/rustls"] diff --git a/ethers-contract/tests/it/contract_call.rs b/ethers-contract/tests/it/contract_call.rs index 29fbd9d2..78c5eb59 100644 --- a/ethers-contract/tests/it/contract_call.rs +++ b/ethers-contract/tests/it/contract_call.rs @@ -6,8 +6,7 @@ use std::{ sync::Arc, }; -#[tokio::test] -async fn contract_call_into_future_is_send() { +fn _contract_call_into_future_is_send() { abigen!(DsProxyFactory, "ethers-middleware/contracts/DsProxyFactory.json"); let (provider, _) = Provider::mocked(); let client = Arc::new(provider); diff --git a/ethers-contract/tests/it/derive.rs b/ethers-contract/tests/it/derive.rs index 50a73adf..a7d65b0a 100644 --- a/ethers-contract/tests/it/derive.rs +++ b/ethers-contract/tests/it/derive.rs @@ -399,7 +399,7 @@ fn eth_display_works() { #[test] fn eth_display_works_for_human_readable() { - ethers_contract::abigen!( + abigen!( HevmConsole, r#"[ event log(string)