mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-27 08:08:15 -05:00
fix: properly modify spec id for evm (#10210)
This commit is contained in:
@@ -77,9 +77,10 @@ pub trait ConfigureEvm: ConfigureEvmEnv {
|
||||
DB: Database,
|
||||
I: GetInspector<DB>,
|
||||
{
|
||||
RethEvmBuilder::new(db, self.default_external_context())
|
||||
.with_env(env.into())
|
||||
.build_with_inspector(inspector)
|
||||
let mut evm = self.evm_with_inspector(db, inspector);
|
||||
evm.modify_spec_id(env.spec_id());
|
||||
evm.context.evm.env = env.env;
|
||||
evm
|
||||
}
|
||||
|
||||
/// Returns a new EVM with the given inspector.
|
||||
|
||||
Reference in New Issue
Block a user