Skip to content

Commit 49d68c8

Browse files
authored
fix(statetest): make bytecode analyzed (#1666)
1 parent 7a35122 commit 49d68c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bins/revme/src/cmd/statetest/runner.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ use revm::{
88
db::EmptyDB,
99
inspector_handle_register,
1010
inspectors::TracerEip3155,
11+
interpreter::analysis::to_analysed,
1112
primitives::{
1213
calc_excess_blob_gas, keccak256, Bytecode, Bytes, EVMResultGeneric, Env, ExecutionResult,
1314
SpecId, TxKind, B256,
@@ -258,7 +259,7 @@ pub fn execute_test_suite(
258259
let mut cache_state = revm::CacheState::new(false);
259260
for (address, info) in unit.pre {
260261
let code_hash = keccak256(&info.code);
261-
let bytecode = Bytecode::new_raw(info.code);
262+
let bytecode = to_analysed(Bytecode::new_raw(info.code));
262263
let acc_info = revm::primitives::AccountInfo {
263264
balance: info.balance,
264265
code_hash,

0 commit comments

Comments
 (0)