Skip to content

Commit

Permalink
fix: remove to_analysed being (wrongly) used (#1686)
Browse files Browse the repository at this point in the history
  • Loading branch information
carneiro-cw authored Aug 30, 2024
1 parent 6925155 commit 2ff3cc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/eth/executor/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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();
Expand Down
3 changes: 1 addition & 2 deletions src/eth/primitives/bytes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -127,6 +126,6 @@ impl From<Bytes> for RevmBytes {

impl From<Bytes> for RevmBytecode {
fn from(value: Bytes) -> Self {
to_analysed(RevmBytecode::new_raw(value.0.into()))
RevmBytecode::new_raw(value.0.into())
}
}

0 comments on commit 2ff3cc7

Please sign in to comment.