mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
chore: replace raw usage of revm evm builder with EvmConfig usage (#9190)
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
||||||
use jsonrpsee::core::RpcResult;
|
use jsonrpsee::core::RpcResult;
|
||||||
use reth_evm::ConfigureEvmEnv;
|
use reth_evm::{ConfigureEvm, ConfigureEvmEnv};
|
||||||
use reth_primitives::{
|
use reth_primitives::{
|
||||||
keccak256,
|
keccak256,
|
||||||
revm_primitives::db::{DatabaseCommit, DatabaseRef},
|
revm_primitives::db::{DatabaseCommit, DatabaseRef},
|
||||||
@ -120,8 +120,7 @@ where
|
|||||||
let mut total_gas_fess = U256::ZERO;
|
let mut total_gas_fess = U256::ZERO;
|
||||||
let mut hash_bytes = Vec::with_capacity(32 * transactions.len());
|
let mut hash_bytes = Vec::with_capacity(32 * transactions.len());
|
||||||
|
|
||||||
let mut evm =
|
let mut evm = Call::evm_config(ð_api).evm_with_env(db, env);
|
||||||
revm::Evm::builder().with_db(db).with_env_with_handler_cfg(env).build();
|
|
||||||
|
|
||||||
let mut results = Vec::with_capacity(transactions.len());
|
let mut results = Vec::with_capacity(transactions.len());
|
||||||
let mut transactions = transactions.into_iter().peekable();
|
let mut transactions = transactions.into_iter().peekable();
|
||||||
|
|||||||
Reference in New Issue
Block a user