mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: Introduce helper type for evm cfg and env tuple (#13377)
This commit is contained in:
@ -15,7 +15,7 @@ use reth::{
|
||||
handler::register::EvmHandler,
|
||||
inspector_handle_register,
|
||||
precompile::{Precompile, PrecompileOutput, PrecompileSpecId},
|
||||
primitives::{BlockEnv, CfgEnvWithHandlerCfg, Env, PrecompileResult, TxEnv},
|
||||
primitives::{CfgEnvWithHandlerCfg, Env, PrecompileResult, TxEnv},
|
||||
ContextPrecompiles, Database, Evm, EvmBuilder, GetInspector,
|
||||
},
|
||||
rpc::types::engine::PayloadAttributes,
|
||||
@ -23,6 +23,7 @@ use reth::{
|
||||
transaction_pool::{PoolTransaction, TransactionPool},
|
||||
};
|
||||
use reth_chainspec::{Chain, ChainSpec};
|
||||
use reth_evm::env::EvmEnv;
|
||||
use reth_evm_ethereum::EthEvmConfig;
|
||||
use reth_node_api::{
|
||||
ConfigureEvm, ConfigureEvmEnv, FullNodeTypes, NextBlockEnvAttributes, NodeTypes,
|
||||
@ -115,7 +116,7 @@ impl ConfigureEvmEnv for MyEvmConfig {
|
||||
&self,
|
||||
parent: &Self::Header,
|
||||
attributes: NextBlockEnvAttributes,
|
||||
) -> Result<(CfgEnvWithHandlerCfg, BlockEnv), Self::Error> {
|
||||
) -> Result<EvmEnv, Self::Error> {
|
||||
self.inner.next_cfg_and_block_env(parent, attributes)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user