Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: replace raw usage of revm evm builder with EvmConfig usage #9190

Merged
merged 1 commit into from
Jun 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions crates/rpc/rpc/src/eth/bundle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use std::sync::Arc;

use jsonrpsee::core::RpcResult;
use reth_evm::ConfigureEvmEnv;
use reth_evm::{ConfigureEvm, ConfigureEvmEnv};
use reth_primitives::{
keccak256,
revm_primitives::db::{DatabaseCommit, DatabaseRef},
Expand Down Expand Up @@ -120,8 +120,7 @@ where
let mut total_gas_fess = U256::ZERO;
let mut hash_bytes = Vec::with_capacity(32 * transactions.len());

let mut evm =
revm::Evm::builder().with_db(db).with_env_with_handler_cfg(env).build();
let mut evm = Call::evm_config(&eth_api).evm_with_env(db, env);

let mut results = Vec::with_capacity(transactions.len());
let mut transactions = transactions.into_iter().peekable();
Expand Down
Loading