Skip to content

Commit c5fd67b

Browse files
authored
chore: don't use ethers in evm-core (#6787)
1 parent c367a78 commit c5fd67b

File tree

6 files changed

+6
-8
lines changed

6 files changed

+6
-8
lines changed

Cargo.lock

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/evm/core/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ revm = { workspace = true, default-features = false, features = [
3434
alloy-providers = { workspace = true }
3535
alloy-transport = { workspace = true }
3636
alloy-rpc-types = { workspace = true }
37-
ethers = { workspace = true, features = ["ethers-solc"] }
3837

3938
ethers-core.workspace = true
39+
ethers-providers.workspace = true
4040

4141
derive_more.workspace = true
4242
eyre = "0.6"

crates/evm/core/src/backend/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::{
88
};
99
use alloy_primitives::{b256, keccak256, Address, B256, U256, U64};
1010
use alloy_rpc_types::{Block, BlockNumberOrTag, BlockTransactions, Transaction};
11-
use ethers::utils::GenesisAccount;
11+
use ethers_core::utils::GenesisAccount;
1212
use foundry_common::{is_known_system_sender, types::ToAlloy, SYSTEM_TRANSACTION_TYPE};
1313
use revm::{
1414
db::{CacheDB, DatabaseRef},

crates/evm/core/src/fork/multi.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
use crate::fork::{BackendHandler, BlockchainDb, BlockchainDbMeta, CreateFork, SharedBackend};
77
use alloy_providers::provider::Provider;
88
use alloy_transport::BoxTransport;
9-
use ethers::types::BlockNumber;
9+
use ethers_core::types::BlockNumber;
1010
use foundry_common::provider::alloy::ProviderBuilder;
11-
1211
use foundry_config::Config;
1312
use futures::{
1413
channel::mpsc::{channel, Receiver, Sender},

crates/evm/core/src/opts.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use super::fork::environment;
22
use crate::fork::CreateFork;
33
use alloy_primitives::{Address, B256, U256};
44
use alloy_rpc_types::Block;
5-
use ethers::providers::{Middleware, Provider};
5+
use ethers_providers::{Middleware, Provider};
66
use eyre::WrapErr;
77
use foundry_common::{
88
self,

crates/evm/core/src/utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use alloy_json_abi::{Function, JsonAbi};
22
use alloy_primitives::FixedBytes;
33
use alloy_rpc_types::{Block, Transaction};
4-
use ethers::types::{ActionType, CallType, Chain, H256, U256};
4+
use ethers_core::types::{ActionType, CallType, Chain, H256, U256};
55
use eyre::ContextCompat;
66
use foundry_common::types::ToAlloy;
77
use revm::{

0 commit comments

Comments
 (0)