Skip to content

Commit

Permalink
fix(statetest): make bytecode analyzed (#1666)
Browse files Browse the repository at this point in the history
  • Loading branch information
rakita committed Jul 28, 2024
1 parent 7a35122 commit 49d68c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bins/revme/src/cmd/statetest/runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use revm::{
db::EmptyDB,
inspector_handle_register,
inspectors::TracerEip3155,
interpreter::analysis::to_analysed,
primitives::{
calc_excess_blob_gas, keccak256, Bytecode, Bytes, EVMResultGeneric, Env, ExecutionResult,
SpecId, TxKind, B256,
Expand Down Expand Up @@ -258,7 +259,7 @@ pub fn execute_test_suite(
let mut cache_state = revm::CacheState::new(false);
for (address, info) in unit.pre {
let code_hash = keccak256(&info.code);
let bytecode = Bytecode::new_raw(info.code);
let bytecode = to_analysed(Bytecode::new_raw(info.code));
let acc_info = revm::primitives::AccountInfo {
balance: info.balance,
code_hash,
Expand Down

0 comments on commit 49d68c8

Please sign in to comment.