diff --git a/src/eth/executor/evm.rs b/src/eth/executor/evm.rs index 8db7892ad..0515a9733 100644 --- a/src/eth/executor/evm.rs +++ b/src/eth/executor/evm.rs @@ -5,6 +5,7 @@ use std::sync::Arc; use anyhow::anyhow; use itertools::Itertools; use revm::primitives::AccountInfo; +use revm::primitives::AnalysisKind; use revm::primitives::EVMError; use revm::primitives::ExecutionResult as RevmExecutionResult; use revm::primitives::InvalidTransaction; @@ -86,6 +87,7 @@ impl Evm { let cfg_env = evm.cfg_mut(); cfg_env.chain_id = chain_id; cfg_env.limit_contract_code_size = Some(usize::MAX); + cfg_env.perf_analyse_created_bytecodes = AnalysisKind::Raw; // global block config let block_env = evm.block_mut(); diff --git a/src/eth/primitives/bytes.rs b/src/eth/primitives/bytes.rs index 1eef58810..4e258c150 100644 --- a/src/eth/primitives/bytes.rs +++ b/src/eth/primitives/bytes.rs @@ -3,7 +3,6 @@ use std::ops::Deref; use std::ops::DerefMut; use display_json::DebugAsJson; -use revm::interpreter::analysis::to_analysed; use crate::alias::EthersBytes; use crate::alias::RevmBytecode; @@ -127,6 +126,6 @@ impl From for RevmBytes { impl From for RevmBytecode { fn from(value: Bytes) -> Self { - to_analysed(RevmBytecode::new_raw(value.0.into())) + RevmBytecode::new_raw(value.0.into()) } }