mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00: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